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)