Permalink
Browse files

Removed Windows-specific argument to Popen()

Starting JsTestDriver server in a new shell now works on Linux.
  • Loading branch information...
1 parent 3776ce3 commit 5f1dfa61e79f2b20f7d120e16eca832baf046119 @eromba committed Oct 10, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 jtd-android-init.py
View
@@ -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])
#

0 comments on commit 5f1dfa6

Please sign in to comment.