Changeset 163


Ignore:
Timestamp:
18/06/14 22:42:34 (6 years ago)
Author:
spascoe
Message:

Moving config dir inside the package dir

Location:
CCCC/branches/branch-sp/ceda_cc
Files:
11 added
1 edited
69 moved

Legend:

Unmodified
Added
Removed
  • CCCC/branches/branch-sp/ceda_cc/config_c4.py

    r162 r163  
    77# Configure config-file paths 
    88# 
    9 # This is an interim measure until we put all configuration files inside the  
    10 # ceda_cc directory and create a means of overriding them. 
    11 # 
    129# All configuration directories, e.g. cmip5_vocabs, are looked for in a single 
    13 # parent directory.  This is assumed to be the "config" relative to the current 
    14 # directory or the value of the environment variable CC_CONFIG_DIR 
    15  
    16 CC_CONFIG_DIR = os.environ.get('CC_CONFIG_DIR', './config') 
     10# parent directory.  This is the "config" directory within the package unless  
     11# the environment variable CC_CONFIG_DIR is set. 
     12 
     13HERE = op.dirname(__file__) 
     14CC_CONFIG_DIR = os.environ.get('CC_CONFIG_DIR', op.join(HERE, 'config')) 
    1715 
    1816############################################################################## 
Note: See TracChangeset for help on using the changeset viewer.