Changeset 5191
- Timestamp:
- 14/04/09 15:52:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nappy/trunk/nappy/utils/parse_config.py
r5142 r5191 14 14 # Global variables 15 15 16 # base_dir is taken from the environment first and then from nappy.config 17 # as a fallback. 18 if 'NAPPY_BASE_DIR' in os.environ: 19 base_dir = os.environ["NAPPY_BASE_DIR"] 20 else: 21 _here = os.path.dirname(__file__) 22 base_dir = os.path.join(_here, '../config') 16 # Defaults are always loaded from <nappy-egg>/nappy/config/nappy.ini 17 _here = os.path.dirname(__file__) 18 base_dir = os.path.join(_here, '../config') 23 19 24 20 config_file = os.path.join(base_dir, "nappy.ini")
Note: See TracChangeset
for help on using the changeset viewer.