Fixed bug in running Monkey from Island when win32 is the platform

This commit is contained in:
daniel goldberg 2016-08-23 11:02:18 +03:00
parent b2a9b85af4
commit 87cdac12db
1 changed files with 4 additions and 1 deletions

View File

@ -336,7 +336,10 @@ def run_local_monkey(island_address):
# run the monkey
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:
return (False, "popen failed: %s" % exc)