From 9edcc678b73c7d6507a421c4c79888d5ebb9145c Mon Sep 17 00:00:00 2001 From: "Mads M. Pedersen" <mmpe@dtu.dk> Date: Wed, 19 Oct 2016 10:25:57 +0200 Subject: [PATCH] bugfix in hawc2.simulation.py --- wetb/hawc2/simulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wetb/hawc2/simulation.py b/wetb/hawc2/simulation.py index b53acd1a..4de23bab 100755 --- a/wetb/hawc2/simulation.py +++ b/wetb/hawc2/simulation.py @@ -466,7 +466,7 @@ class SimulationThread(Thread): with open (os.path.join(self.modelpath, stdout), 'wb') as stdout: if isinstance(hawc2exe, tuple): wine, hawc2exe = hawc2exe - self.process = subprocess.Popen([wine, hawc2exe, htcfile], stdout=stdout, stderr=STDOUT, shell=True, cwd=modelpath) #shell must be True to inwoke wine + self.process = subprocess.Popen(" ".join([wine, hawc2exe, htcfile]), stdout=stdout, stderr=STDOUT, shell=True, cwd=modelpath) #shell must be True to inwoke wine else: self.process = subprocess.Popen([hawc2exe, htcfile], stdout=stdout, stderr=STDOUT, shell=False, cwd=modelpath) #, creationflags=CREATE_NO_WINDOW) self.process.communicate() -- GitLab