[SciPy-dev] Adding a configuration file to a scikit
Thu Aug 21 13:58:07 CDT 2008
On Thu, Aug 21, 2008 at 11:33, Pierre GM <firstname.lastname@example.org> wrote:
> [short] What is the best way to define a configuration file for a scikit ?
> 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) ?
distutils does not really support this well. Instead, take a look at
how matplotlib does this.
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Scipy-dev