Changeset 222aa11 in flex_extract.git for python/_config.py


Ignore:
Timestamp:
Sep 10, 2018, 8:54:42 AM (2 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev, feature/makefiles, origin/task/language-editing, task/language-editing
Children:
3232589
Parents:
308e144
Message:

added pathes in config file and according testcases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/_config.py

    rdda0e9d r222aa11  
    2929
    3030# add path to pythonpath
    31 LOCAL_PYTHON_PATH = os.path.dirname(os.path.abspath(
     31PATH_LOCAL_PYTHON = os.path.dirname(os.path.abspath(
    3232    inspect.getfile(inspect.currentframe())))
    33 if LOCAL_PYTHON_PATH not in sys.path:
    34     sys.path.append(LOCAL_PYTHON_PATH)
     33if PATH_LOCAL_PYTHON not in sys.path:
     34    sys.path.append(PATH_LOCAL_PYTHON)
     35
     36PATH_FLEXEXTRACT_DIR = os.path.normpath(os.path.dirname(os.path.abspath(
     37    inspect.getfile(inspect.currentframe()))) + '/../')
     38
     39PATH_TEMPLATES = os.path.join(PATH_FLEXEXTRACT_DIR + os.path.sep +
     40                              '_templates')
    3541
    3642# path to gribtable
    37 PATH_GRIBTABLE = LOCAL_PYTHON_PATH + '/templates/ecmwf_grib1_table_128'
     43PATH_GRIBTABLE = os.path.join(PATH_TEMPLATES + os.path.sep +
     44                              'ecmwf_grib1_table_128')
    3845
     46PATH_RUN_DIR = os.path.join(PATH_FLEXEXTRACT_DIR + os.path.sep +
     47                                'run')
     48
     49PATH_CONTROLFILES = os.path.join(PATH_RUN_DIR + os.path.sep +
     50                                'control')
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG