Changes in Source/Python/_config.py [75db9b0:0a75335] in flex_extract.git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Source/Python/_config.py
r75db9b0 r0a75335 9 9 # June 2020 - Anne Philipp 10 10 # - changed template filenames to .template 11 # August 2020 - Leopold Haimberger12 # - added another target for installation13 # - added filename which will contain paths for system version14 # - checks if software runs in normal local mode or system local mode15 # and defines paths to user directory and executable paths16 11 # 17 12 # @License: … … 43 38 # ------------------------------------------------------------------------------ 44 39 45 _VERSION_STR = '7.1.2 _ctbto'40 _VERSION_STR = '7.1.2' 46 41 47 42 FLAG_ON_ECMWFSERVER = 'ecgb' in platform.node() … … 49 44 QUEUES_LIST = ['ecgate', 'cca', 'ccb'] 50 45 51 INSTALL_TARGETS = ['local', ' syslocal', 'ecgate', 'cca', 'ccb']46 INSTALL_TARGETS = ['local', 'ecgate', 'cca', 'ccb'] 52 47 53 48 CDS_DATASET_ML = 'reanalysis-era5-complete' … … 75 70 FILE_GRIB_INDEX = 'date_time_stepRange.idx' 76 71 FILE_GRIBTABLE = 'ecmwf_grib1_table_128' 77 FILE_SYS_CONFIG = '.setup.rc'78 72 79 73 # ------------------------------------------------------------------------------ … … 85 79 86 80 # ------------------------------------------------------------------------------ 87 # LOAD ENVIRONMENT VARIABLES FOR SYS VERSION; IF NECESSARRY81 # PATHES 88 82 # ------------------------------------------------------------------------------ 89 83 … … 95 89 if PATH_LOCAL_PYTHON not in sys.path: 96 90 sys.path.append(PATH_LOCAL_PYTHON) 97 98 # ------------------------------------------------------------------------------99 # PATHES100 # ------------------------------------------------------------------------------101 102 91 PATH_FLEXEXTRACT_DIR = os.path.normpath(os.path.dirname(os.path.abspath( 103 92 inspect.getfile(inspect.currentframe()))) + '/../../') 104 if not os.path.isdir(os.path.join(PATH_FLEXEXTRACT_DIR,'Run')):105 # if it does not exist, we have a system installation in place106 # we need to have a sys and user path107 # configure correct system path108 PATH_SYSTEM_DIR = os.path.join(PATH_FLEXEXTRACT_DIR, FLEXEXTRACT_DIRNAME)109 # configure correct user path110 PATH_FLEXEXTRACT_DIR = os.environ.get('FLEXEXTRACT_USER_DIR')111 else:112 PATH_SYSTEM_DIR = PATH_FLEXEXTRACT_DIR113 114 93 PATH_RUN_DIR = os.path.join(PATH_FLEXEXTRACT_DIR, 'Run') 115 PATH_SOURCES = os.path.join(PATH_ SYSTEM_DIR, 'Source')94 PATH_SOURCES = os.path.join(PATH_FLEXEXTRACT_DIR, 'Source') 116 95 PATH_TEMPLATES = os.path.join(PATH_FLEXEXTRACT_DIR, 'Templates') 117 96 PATH_ECMWF_ENV = os.path.join(PATH_RUN_DIR, FILE_USER_ENVVARS) 118 97 PATH_GRIBTABLE = os.path.join(PATH_TEMPLATES, FILE_GRIBTABLE) 119 98 PATH_JOBSCRIPTS = os.path.join(PATH_RUN_DIR, 'Jobscripts') 120 if os.path.isdir(os.path.join(PATH_SYSTEM_DIR,'Fortran')): 121 PATH_FORTRAN_SRC = PATH_SYSTEM_DIR 122 else: 123 PATH_FORTRAN_SRC = os.path.join(PATH_SOURCES, 'Fortran') 99 PATH_FORTRAN_SRC = os.path.join(PATH_SOURCES, 'Fortran') 124 100 PATH_PYTHONTEST_SRC = os.path.join(PATH_SOURCES, 'Pythontest') 125 101 PATH_INPUT_DIR = os.path.join(PATH_RUN_DIR, INPUT_DIRNAME_DEFAULT)
Note: See TracChangeset
for help on using the changeset viewer.