Ignore:
Timestamp:
26/03/09 13:44:17 (11 years ago)
Author:
spascoe
Message:

Merged the nappy-eggable branch into trunk.

See README_EGG for details and some TODO items.

Location:
nappy/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nappy/trunk

    • Property svn:ignore set to
      *.egg-info
  • nappy/trunk/nappy/utils/parse_config.py

    r3988 r5142  
    1111import os 
    1212 
     13 
    1314# Global variables 
    14 base_dir = os.environ.get("NAPPY_BASE_DIR", ".." + os.path.sep + "..") 
     15 
     16# base_dir is taken from the environment first and then from nappy.config 
     17# as a fallback. 
     18if 'NAPPY_BASE_DIR' in os.environ: 
     19    base_dir = os.environ["NAPPY_BASE_DIR"] 
     20else: 
     21    _here = os.path.dirname(__file__) 
     22    base_dir = os.path.join(_here, '../config') 
     23 
    1524config_file = os.path.join(base_dir, "nappy.ini") 
    1625config_dict = None 
Note: See TracChangeset for help on using the changeset viewer.