diff --git a/pyflask/manageNeuroconv/manage_neuroconv.py b/pyflask/manageNeuroconv/manage_neuroconv.py index c562f5543..807229b97 100644 --- a/pyflask/manageNeuroconv/manage_neuroconv.py +++ b/pyflask/manageNeuroconv/manage_neuroconv.py @@ -569,8 +569,8 @@ def inspect_nwb_folder(payload): return json.loads(json.dumps(messages, cls=InspectorOutputJSONEncoder)) -def aggregate_symlinks_in_new_directory(paths, reason="", folder_path = None): - if (folder_path is None): +def aggregate_symlinks_in_new_directory(paths, reason="", folder_path=None): + if folder_path is None: folder_path = GUIDE_ROOT_FOLDER / ".temp" / reason / f"temp_{datetime.now().strftime('%Y%m%d-%H%M%S')}" folder_path.mkdir(parents=True) @@ -578,8 +578,10 @@ def aggregate_symlinks_in_new_directory(paths, reason="", folder_path = None): for path in paths: path = Path(path) new_path = folder_path / path.name - if (path.is_dir()): - aggregate_symlinks_in_new_directory(list(map(lambda name: os.path.join(path, name), os.listdir(path))), None, new_path) + if path.is_dir(): + aggregate_symlinks_in_new_directory( + list(map(lambda name: os.path.join(path, name), os.listdir(path))), None, new_path + ) else: new_path.symlink_to(path, path.is_dir()) diff --git a/src/main/main.ts b/src/main/main.ts index 0f78f25c1..f15f363fb 100755 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -184,7 +184,7 @@ const exitPyProc = async () => { const killAllPreviousProcesses = async () => { const fetch = globalThis.fetch - + if (fetch){ console.log("Killing all previous processes");