avoid the use use of workflow.source_path

The above function returns a path to a cached source file, which
changes for every run, causing the resulting parameter to change and
the solve_network rule to re-run
This commit is contained in:
Koen van Greevenbroek 2024-01-24 14:39:50 +01:00
parent 2bee36be87
commit 1fab74c463

View File

@ -43,7 +43,7 @@ def memory(w):
def input_custom_extra_functionality(w):
path = config["solving"]["options"].get("custom_extra_functionality", False)
if path:
return workflow.source_path(path)
return os.path.join(os.path.dirname(workflow.snakefile), path)
return []