Changes in Source/Python/_config.py [75db9b0:0a75335] in flex_extract.git


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Source/Python/_config.py

    r75db9b0 r0a75335  
    99#      June 2020 - Anne Philipp
    1010#         - changed template filenames to .template
    11 #      August 2020 - Leopold Haimberger
    12 #         - added another target for installation
    13 #         - added filename which will contain paths for system version     
    14 #         - checks if software runs in normal local mode or system local mode
    15 #           and defines paths to user directory and executable paths   
    1611#
    1712# @License:
     
    4338# ------------------------------------------------------------------------------
    4439
    45 _VERSION_STR = '7.1.2_ctbto'
     40_VERSION_STR = '7.1.2'
    4641
    4742FLAG_ON_ECMWFSERVER = 'ecgb' in platform.node()
     
    4944QUEUES_LIST = ['ecgate', 'cca', 'ccb']
    5045
    51 INSTALL_TARGETS = ['local', 'syslocal', 'ecgate', 'cca', 'ccb']
     46INSTALL_TARGETS = ['local', 'ecgate', 'cca', 'ccb']
    5247
    5348CDS_DATASET_ML = 'reanalysis-era5-complete'
     
    7570FILE_GRIB_INDEX = 'date_time_stepRange.idx'
    7671FILE_GRIBTABLE = 'ecmwf_grib1_table_128'
    77 FILE_SYS_CONFIG = '.setup.rc'
    7872
    7973# ------------------------------------------------------------------------------
     
    8579
    8680# ------------------------------------------------------------------------------
    87 LOAD ENVIRONMENT VARIABLES FOR SYS VERSION; IF NECESSARRY
     81PATHES
    8882# ------------------------------------------------------------------------------
    8983
     
    9589if PATH_LOCAL_PYTHON not in sys.path:
    9690    sys.path.append(PATH_LOCAL_PYTHON)
    97 
    98 # ------------------------------------------------------------------------------
    99 #  PATHES
    100 # ------------------------------------------------------------------------------
    101 
    10291PATH_FLEXEXTRACT_DIR = os.path.normpath(os.path.dirname(os.path.abspath(
    10392    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 place
    106     # we need to have a sys and user path
    107     # configure correct system path
    108     PATH_SYSTEM_DIR = os.path.join(PATH_FLEXEXTRACT_DIR, FLEXEXTRACT_DIRNAME)
    109     # configure correct user path
    110     PATH_FLEXEXTRACT_DIR = os.environ.get('FLEXEXTRACT_USER_DIR')
    111 else:
    112     PATH_SYSTEM_DIR = PATH_FLEXEXTRACT_DIR
    113 
    11493PATH_RUN_DIR = os.path.join(PATH_FLEXEXTRACT_DIR, 'Run')
    115 PATH_SOURCES = os.path.join(PATH_SYSTEM_DIR, 'Source')
     94PATH_SOURCES = os.path.join(PATH_FLEXEXTRACT_DIR, 'Source')
    11695PATH_TEMPLATES = os.path.join(PATH_FLEXEXTRACT_DIR, 'Templates')
    11796PATH_ECMWF_ENV = os.path.join(PATH_RUN_DIR, FILE_USER_ENVVARS)
    11897PATH_GRIBTABLE = os.path.join(PATH_TEMPLATES, FILE_GRIBTABLE)
    11998PATH_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')
     99PATH_FORTRAN_SRC = os.path.join(PATH_SOURCES, 'Fortran')
    124100PATH_PYTHONTEST_SRC = os.path.join(PATH_SOURCES, 'Pythontest')
    125101PATH_INPUT_DIR = os.path.join(PATH_RUN_DIR, INPUT_DIRNAME_DEFAULT)
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG