From aaaa6193b790f45fe10649aa15fd80222380a5ac Mon Sep 17 00:00:00 2001 From: yechen-idm Date: Wed, 16 Oct 2024 15:11:26 -0700 Subject: [PATCH] update snakemake rule to work with running from onedrive folder --- simulations/snakefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simulations/snakefile b/simulations/snakefile index 0fd917f..09c92db 100644 --- a/simulations/snakefile +++ b/simulations/snakefile @@ -33,11 +33,11 @@ def get_command(script="run_sims.py", python_version: str=None, site: str=None, extra_arguments += ' --subset ' + subset if python_version: - command = python_version + " " + script + extra_arguments + command = python_version + ' "' + script + '"' + extra_arguments elif platform == "linux": - command = "python3 " + script + extra_arguments + command = 'python3 "' + script + '"' + extra_arguments elif platform == "win32": - command = "python " + script + extra_arguments + command = 'python "' + script + '"' + extra_arguments else: print("Unknown OS") raise Exception