climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From huiky...@apache.org
Subject [1/2] climate git commit: CLIMATE-946 - CORDEX script does not necessarily use correct interpreter when calling RCMES
Date Wed, 17 Jan 2018 05:20:05 GMT
Repository: climate
Updated Branches:
  refs/heads/master 3be7da888 -> e8d8d42ca


CLIMATE-946 - CORDEX script does not necessarily use correct interpreter when calling RCMES


Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/b7af271b
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/b7af271b
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/b7af271b

Branch: refs/heads/master
Commit: b7af271b1b8a9deb79ad8bea89b92e3dd2a51e1a
Parents: 4c06b8c
Author: Alex <agoodm@users.noreply.github.com>
Authored: Tue Jan 16 18:01:14 2018 -0800
Committer: Alex <agoodm@users.noreply.github.com>
Committed: Tue Jan 16 18:01:14 2018 -0800

----------------------------------------------------------------------
 RCMES/CORDEX/cordex.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/b7af271b/RCMES/CORDEX/cordex.py
----------------------------------------------------------------------
diff --git a/RCMES/CORDEX/cordex.py b/RCMES/CORDEX/cordex.py
index dc80be4..24ce0c6 100644
--- a/RCMES/CORDEX/cordex.py
+++ b/RCMES/CORDEX/cordex.py
@@ -1,4 +1,5 @@
 import os
+import sys
 import subprocess
 import jinja2
 from metadata_extractor import CORDEXMetadataExtractor, obs4MIPSMetadataExtractor
@@ -48,7 +49,7 @@ for group in groups:
 
         # TODO: Do this in parallel. Will change this once this approach
         # is well tested.
-        code = subprocess.call(['python', '../run_RCMES.py', configfile_path])
+        code = subprocess.call([sys.executable, '../run_RCMES.py', configfile_path])
         errored = []
         if code:
             errored.append(configfile_path)


Mime
View raw message