[Epydoc-commits] SF.net SVN: epydoc: [1217] trunk/epydoc/src/epydoc/cli.py
Brought to you by:
edloper
From: <ed...@us...> - 2006-04-12 18:03:12
|
Revision: 1217 Author: edloper Date: 2006-04-12 11:02:59 -0700 (Wed, 12 Apr 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1217&view=rev Log Message: ----------- - Use environment variable interpolations when reading config files (sf feature request #1464911) Modified Paths: -------------- trunk/epydoc/src/epydoc/cli.py Modified: trunk/epydoc/src/epydoc/cli.py =================================================================== --- trunk/epydoc/src/epydoc/cli.py 2006-04-12 17:58:21 UTC (rev 1216) +++ trunk/epydoc/src/epydoc/cli.py 2006-04-12 18:02:59 UTC (rev 1217) @@ -38,11 +38,15 @@ A simple example of a config file is:: [epydoc] - modules: sys, os, os.path, re + modules: sys, os, os.path, re, %(MYSANDBOXPATH)/utilities.py name: Example graph: classtree introspect: no +All ConfigParser interpolations are done using local values and the +environment variables. + + Verbosity Levels ================ The C{-v} and C{-q} options increase and decrease verbosity, @@ -300,7 +304,7 @@ configparser.readfp(fp, configfile) fp.close() for optname in configparser.options('epydoc'): - val = configparser.get('epydoc', optname).strip() + val = configparser.get('epydoc', optname, vars=os.environ).strip() optname = optname.lower().strip() if optname in ('modules', 'objects', 'values', 'module', 'object', 'value'): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |