use quotation marks on linux as well

This commit is contained in:
Itay Mizeretz 2017-12-24 14:43:29 +02:00
parent 002394f887
commit bb27444c35
1 changed files with 1 additions and 3 deletions

View File

@ -36,11 +36,9 @@ def run_local_monkey():
# run the monkey
try:
if sys.platform == "win32":
args = ['"%s" m0nk3y -s %s:%s' % (target_path, local_ip_addresses()[0], ISLAND_PORT)]
if sys.platform == "win32":
args = "".join(args)
else:
args = ['%s m0nk3y -s %s:%s' % (target_path, local_ip_addresses()[0], ISLAND_PORT)]
pid = subprocess.Popen(args, shell=True).pid
except Exception as exc:
return False, "popen failed: %s" % exc