Skip to content
Snippets Groups Projects
Verified Commit ccf3ea0b authored by Christoph Lehmann's avatar Christoph Lehmann Committed by Lars Bilke
Browse files

[App] Use recommended subprocess method

parent ce05ebb8
No related branches found
No related tags found
No related merge requests found
...@@ -73,7 +73,7 @@ if "PEP517_BUILD_BACKEND" not in os.environ: ...@@ -73,7 +73,7 @@ if "PEP517_BUILD_BACKEND" not in os.environ:
OGS_BIN_DIR = os.path.join(os.path.join(os.path.dirname(__file__), "bin")) OGS_BIN_DIR = os.path.join(os.path.join(os.path.dirname(__file__), "bin"))
def _program(name, args): def _program(name, args):
return subprocess.call([os.path.join(OGS_BIN_DIR, name)] + args) return subprocess.run([os.path.join(OGS_BIN_DIR, name)] + args).returncode
FUNC_TEMPLATE = """def {0}(): raise SystemExit(_program("{0}", sys.argv[1:]))""" FUNC_TEMPLATE = """def {0}(): raise SystemExit(_program("{0}", sys.argv[1:]))"""
for f in binaries_list: for f in binaries_list:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment