summaryrefslogtreecommitdiffstats
path: root/methods.py
diff options
context:
space:
mode:
authorLeon Krause <lk@leonkrause.com>2018-03-21 15:51:44 +0100
committerLeon Krause <lk@leonkrause.com>2018-03-26 19:46:56 +0200
commitd8d9eea72252e5b667537261ea40fec18cf1f809 (patch)
tree09769955258fc31ee3f3df66d66410433f6b4985 /methods.py
parent25800ffb0e9acfe9e63608eb44979f27c33fc6c1 (diff)
downloadredot-engine-d8d9eea72252e5b667537261ea40fec18cf1f809.tar.gz
Refactor JavaScript platform build script
Diffstat (limited to 'methods.py')
-rw-r--r--methods.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/methods.py b/methods.py
index 6f03f79be3..792417866e 100644
--- a/methods.py
+++ b/methods.py
@@ -781,13 +781,10 @@ def use_windows_spawn_fix(self, platform=None):
import subprocess
def mySubProcess(cmdline, env):
- prefix = ""
- if(platform == 'javascript'):
- prefix = "python.exe "
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
- proc = subprocess.Popen(prefix + cmdline, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
+ proc = subprocess.Popen(cmdline, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, startupinfo=startupinfo, shell=False, env=env)
data, err = proc.communicate()
rv = proc.wait()