source: flex_extract.git/python/pythontest/TestInstallTar/test_untar/python/_config.py @ 2fb99de

ctbtodev
Last change on this file since 2fb99de was 2fb99de, checked in by Anne Philipp <anne.philipp@…>, 6 years ago

introduced config with path definitions and changed py files accordingly; Installation works; some tests were added for tarball making; Problems in submission to ecgate

  • Property mode set to 100644
File size: 2.9 KB
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3#*******************************************************************************
4# @Author: Anne Philipp (University of Vienna)
5#
6# @Date: August 2018
7#
8# @Change History:
9#
10# @License:
11#    (C) Copyright 2014-2018.
12#
13#    This software is licensed under the terms of the Apache Licence Version 2.0
14#    which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
15#
16# @Description:
17#    Contains constant value parameter for flex_extract.
18#
19#*******************************************************************************
20
21# ------------------------------------------------------------------------------
22# MODULES
23# ------------------------------------------------------------------------------
24import os
25import sys
26import inspect
27
28_VERSION_STR = '7.1'
29
30# ------------------------------------------------------------------------------
31# EXPLICIT FILENAMES
32# ------------------------------------------------------------------------------
33
34FLEXEXTRACT_DIRNAME = 'flex_extract_v' + _VERSION_STR
35FILE_MARS_REQUESTS = 'mars_requests.dat'
36FORTRAN_EXECUTABLE = 'CONVERT2'
37FILE_USER_ENVVARS = 'ECMWF_ENV'
38TEMPFILE_INSTALL_COMPILEJOB = 'compilejob.temp'
39FILE_INSTALL_COMPILEJOB = 'compilejob.ksh'
40TEMPFILE_INSTALL_JOB = 'job.temp.o'
41TEMPFILE_JOB = 'job.temp'
42FILE_JOB_OD = 'job.ksh'
43FILE_JOB_OP = 'jopoper.ksh'
44
45# ------------------------------------------------------------------------------
46# EXPLICIT PATHES
47# ------------------------------------------------------------------------------
48
49# add path to pythonpath
50PATH_LOCAL_PYTHON = os.path.dirname(os.path.abspath(
51    inspect.getfile(inspect.currentframe())))
52if PATH_LOCAL_PYTHON not in sys.path:
53    sys.path.append(PATH_LOCAL_PYTHON)
54
55PATH_FLEXEXTRACT_DIR = os.path.normpath(os.path.dirname(os.path.abspath(
56    inspect.getfile(inspect.currentframe()))) + '/../')
57
58PATH_RELATIVE_PYTHON = os.path.relpath(PATH_LOCAL_PYTHON, PATH_FLEXEXTRACT_DIR)
59
60PATH_TEMPLATES = os.path.join(PATH_FLEXEXTRACT_DIR + os.path.sep +
61                              '_templates')
62
63PATH_RELATIVE_TEMPLATES = os.path.relpath(PATH_TEMPLATES, PATH_FLEXEXTRACT_DIR)
64
65# path to gribtable
66PATH_GRIBTABLE = os.path.join(PATH_TEMPLATES + os.path.sep +
67                              'ecmwf_grib1_table_128')
68
69# path to run directory
70PATH_RUN_DIR = os.path.join(PATH_FLEXEXTRACT_DIR + os.path.sep +
71                            'run')
72
73# path to directory where all control files are stored
74PATH_CONTROLFILES = os.path.join(PATH_RUN_DIR + os.path.sep +
75                                 'control')
76
77# path to directory where all control files are stored
78PATH_JOBSCRIPTS = os.path.join(PATH_RUN_DIR + os.path.sep +
79                               'jobscripts')
80
81PATH_FORTRAN_SRC = os.path.join(PATH_FLEXEXTRACT_DIR + os.path.sep +
82                                'src')
83
84PATH_RELATIVE_FORTRAN_SRC = os.path.relpath(PATH_FORTRAN_SRC, PATH_FLEXEXTRACT_DIR)
85
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG