diff --git a/snakemake/utils.py b/snakemake/utils.py index 965dd1f53..5b93bee9e 100644 --- a/snakemake/utils.py +++ b/snakemake/utils.py @@ -152,9 +152,9 @@ def set_defaults(validator, properties, instance, schema): def simplify_path(path): """Return a simplified version of the given path.""" - relpath = os.path.relpath(path) + relpath = os.path.relpath(str(path)) if relpath.startswith("../../"): - return path + return str(path) else: return relpath