2
Expose options from scipy_conf.cfg as a dictionary.
7
from ConfigParser import ConfigParser
10
default_filename = os.path.join(os.path.dirname(__file__),
13
def cfg2dict(filename=default_filename):
14
"""Return the content of a .ini file as a dictionary.
19
if not os.path.isfile(filename):
20
print "*** Warning: Could not load config file '%s'." % filename
24
for key in cp.options('default'):
25
options[key] = cp.get('default', key)