From 23d40d99614a88fd3c596d05e6915509ae43d4ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20K=C3=B6ster?= Date: Thu, 9 Dec 2021 10:34:39 +0100 Subject: [PATCH] fix: fixed display of any exceptions and errors from within a workflow definition --- snakemake/workflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snakemake/workflow.py b/snakemake/workflow.py index 220947037..cb454f662 100644 --- a/snakemake/workflow.py +++ b/snakemake/workflow.py @@ -1181,7 +1181,7 @@ def include( # this allows to import modules from the workflow directory sys.path.insert(0, snakefile.get_basedir().get_path_or_uri()) - self.linemaps[snakefile] = linemap + self.linemaps[snakefile.get_path_or_uri()] = linemap exec(compile(code, snakefile.get_path_or_uri(), "exec"), self.globals)