[SciPy-dev] Adding a configuration file to a scikit
Pierre GM
pgmdevlist@gmail....
Thu Aug 21 13:33:58 CDT 2008
All,
[short] What is the best way to define a configuration file for a scikit ?
[long]
I'm writing a library where some modules need to access some default
variables. The easiest is to define a configuration file (say, .configrc) and
use ConfigParser to read the needed variables. How must I modify the setup.py
of the package so that .configrc gets written system-wide (installed along
the package) AND locally (to the user $HOME directory) ?
[bonus question] the setup may modify some of the options of .configrc, so I
may have to use a configrc.template and write .configrc during the build,
from the template. What's the best way to do it in a scikits-friendly setup ?
Thanks a lot in advance for any pointer.
P.
More information about the Scipy-dev
mailing list