source: flex_extract.git/python/_config.py @ 222aa11

devfeature/makefilesorigin/task/language-editingtask/language-editing
Last change on this file since 222aa11 was 222aa11, checked in by Anne Philipp <anne.philipp@…>, 2 years ago

added pathes in config file and according testcases

  • Property mode set to 100644
File size: 1.6 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# add path to pythonpath
31PATH_LOCAL_PYTHON = os.path.dirname(os.path.abspath(
32    inspect.getfile(inspect.currentframe())))
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')
41
42# path to gribtable
43PATH_GRIBTABLE = os.path.join(PATH_TEMPLATES + os.path.sep +
44                              'ecmwf_grib1_table_128')
45
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 TracBrowser for help on using the repository browser.
hosted by ZAMG