forked from p15670423/monkey
Fixed bug in running Monkey from Island when win32 is the platform
This commit is contained in:
parent
b2a9b85af4
commit
87cdac12db
|
@ -336,7 +336,10 @@ def run_local_monkey(island_address):
|
||||||
|
|
||||||
# run the monkey
|
# run the monkey
|
||||||
try:
|
try:
|
||||||
pid = subprocess.Popen(["%s m0nk3y -s %s:%s" % (target_path, island_address, ISLAND_PORT)], shell=True).pid
|
args = ["%s m0nk3y -s %s:%s" % (target_path, island_address, ISLAND_PORT)]
|
||||||
|
if sys.platform == "win32":
|
||||||
|
args = "".join(args)
|
||||||
|
pid = subprocess.Popen(args, shell=True).pid
|
||||||
except Exception, exc:
|
except Exception, exc:
|
||||||
return (False, "popen failed: %s" % exc)
|
return (False, "popen failed: %s" % exc)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue