Changeset 1828
- Timestamp:
- 06/12/06 14:31:15 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI00-utils/trunk/ndg/utils/config.py
r1816 r1828 12 12 the config file currently being parsed. 13 13 2. /etc/ndg.conf is read if available 14 3. $HOME/.ndg/ndg.conf is read if available 15 14 3. $NDG_HOME/ndg.conf is read if available. 15 4. NDG_HOME defaults to $HOME/.ndg if unset. 16 16 17 For example: 17 18 … … 75 76 76 77 config = NdgConfigParser(CONFIG_SECTION) 77 config.read([GLOBAL_CONFIG_FILE, '%s/.ndg/ndg.conf' % os.getenv('HOME')]) 78 NDG_HOME = os.getenv('NDG_HOME', os.path.join(os.getenv('HOME'), '.ndg')) 79 config.read([GLOBAL_CONFIG_FILE, os.path.join(NDG_HOME, 'ndg.conf')]) 78 80
Note: See TracChangeset
for help on using the changeset viewer.