diff --git a/snakemake/deployment/conda.py b/snakemake/deployment/conda.py index 6f1a1b7a8..473ac2b23 100644 --- a/snakemake/deployment/conda.py +++ b/snakemake/deployment/conda.py @@ -306,7 +306,7 @@ def execute_deployment_script(self, env_file, deploy_file): ) logger.info( "Running post-deploy script {}...".format( - Path(deploy_file).relative_to(os.getcwd()) + os.path.relpath(path=deploy_file, start=os.getcwd()) ) ) conda = Conda(self._container_img)