From 91e4dba65a6b8a5e25981e7477667c951410cecb Mon Sep 17 00:00:00 2001
From: Anne Philipp <anne.philipp@univie.ac.at>
Date: Mon, 29 Jul 2019 12:06:07 +0200
Subject: [PATCH] python2 downgrade / minor adaptations

---
 source/python/_config.py | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/source/python/_config.py b/source/python/_config.py
index 6a9aee1..ca7aae6 100644
--- a/source/python/_config.py
+++ b/source/python/_config.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python
 # -*- coding: utf-8 -*-
 #*******************************************************************************
 # @Author: Anne Philipp (University of Vienna)
@@ -27,15 +27,19 @@ and pathes.
 import os
 import sys
 import inspect
-import socket
+import platform
+
+# ------------------------------------------------------------------------------
+# PARAMETERS
+# ------------------------------------------------------------------------------
 
 _VERSION_STR = '7.1'
 
-FLAG_ON_ECMWFSERVER = 'ecmwf' in socket.gethostname()
+FLAG_ON_ECMWFSERVER = 'ecgb' in platform.node()
 
 QUEUES_LIST = ['ecgate', 'cca', 'ccb']
 
-INSTALL_TARGETS = ['local', 'ecgate', 'cca']
+INSTALL_TARGETS = ['local', 'ecgate', 'cca', 'ccb']
 
 CDS_DATASET = 'reanalysis-era5-complete'
 
@@ -92,7 +96,7 @@ PATH_PYTHONTEST_SRC = os.path.join(PATH_SOURCES, 'pythontest')
 PATH_INPUT_DIR = os.path.join(PATH_RUN_DIR, INPUT_DIRNAME_DEFAULT)
 PATH_TEST = os.path.join(PATH_FLEXEXTRACT_DIR, 'test')
 if os.getenv('CONTROL'):
-    # this is only needed if gateway version with job script is used!
+    # this is only needed if (gateway) version with job script is used!
     # because job is directly submitted from SCRATCH and because the
     # CONTROL file is stored there, the normal path is not valid.
     PATH_CONTROLFILES = '.'
-- 
GitLab