cc: use data_dir when running monkey agent locally from island

This commit is contained in:
Mike Salvatore 2021-02-16 15:04:14 -05:00
parent e1209dcb4c
commit b5e8d895c8
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ def run_local_monkey():
return False, "OS Type not found"
monkey_path = os.path.join(MONKEY_ISLAND_ABS_PATH, 'cc', 'binaries', result['filename'])
target_path = os.path.join(MONKEY_ISLAND_ABS_PATH, result['filename'])
target_path = os.path.join(env_singleton.config.data_dir_abs_path, result['filename'])
# copy the executable to temp path (don't run the monkey from its current location as it may delete itself)
try: