libSingular: Conversion Routines and Initialisation

AUTHOR:

sage.libs.singular.singular.get_resource(id)

Return a Singular “resource”.

INPUT:

OUTPUT:

A string, or None.

EXAMPLES:

sage: from sage.libs.singular.singular import get_resource
sage: get_resource('D')            # SINGULAR_DATA_DIR
'...'
sage: get_resource('i')            # SINGULAR_INFO_FILE
'.../singular...'
sage: get_resource('7') is None    # not defined
True