Skip to content

Commit

Permalink
Removed Windows-specific argument to Popen()
Browse files Browse the repository at this point in the history
Starting JsTestDriver server in a new shell now works on Linux.
  • Loading branch information
eromba committed Oct 10, 2011
1 parent 3776ce3 commit 5f1dfa6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jtd-android-init.py
Expand Up @@ -113,8 +113,10 @@ def AndroidBrowserIsCaptured():
except (urlError):
print("JsTestDriver not detected\nStarting JsTestDriver server...\n")
newServerInstance = True
subprocess.Popen(["java", "-jar", JTD_PATH, "--port", JTD_PORT],\
creationflags=subprocess.CREATE_NEW_CONSOLE)
if os.name == 'nt':
subprocess.Popen(["cmd", "/c", "start", "java", "-jar", JTD_PATH, "--port", JTD_PORT])
else:
subprocess.Popen(["xterm", "-e", "java", "-jar", JTD_PATH, "--port", JTD_PORT])


#
Expand Down

0 comments on commit 5f1dfa6

Please sign in to comment.