Commit 6e13df09 authored by Remi Perenon's avatar Remi Perenon

Merge branch 'bugfix-regression_launch_job_windows' into 'develop'

Bugfix regression launch job windows

See merge request !38
parents 77edb103 62f5dcff
Pipeline #4455 passed with stages
in 25 minutes and 29 seconds
......@@ -2,6 +2,7 @@ version 1.2.0
--------------
* ADDED issue #27 Better error handling when an error occurs when running an analysis from the GUI
* ADDED issue #10 Implemented Gromacs trajectory converter
* FIXED issue #36 Jobs could not be launched on Windows machines
* FIXED issue #35 Result of RBT was incorrect /!\ Modifies job behavior
* FIXED issue #32 Result of DCSF was incorrect (the QVectors changed over frames) /!\ Modifies job behavior
* FIXED issue #31 Result of RMSD was incorrect (the sqrt was not applied) /!\ Modifies job behavior
......
......@@ -112,15 +112,13 @@ class JobPlugin(ComponentPlugin):
self._job.save(filename, parameters)
if PLATFORM.name == "windows":
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
startupinfo.wShowWindow = subprocess.SW_HIDE
else:
startupinfo = None
try:
from subprocess import DEVNULL
except ImportError:
DEVNULL = os.open(os.devnull, os.O_RDWR)
try:
subprocess.check_output([sys.executable, filename],stderr=subprocess.STDOUT)
subprocess.check_output([sys.executable, filename], stdin=DEVNULL, stderr=DEVNULL)
except subprocess.CalledProcessError as e:
message = e.output
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment