From dc65e2921163e9b069c13f79dc0488be21452905 Mon Sep 17 00:00:00 2001 From: Christian <36476797+Christian-Heyer@users.noreply.github.com> Date: Wed, 23 Mar 2022 09:32:59 +0100 Subject: [PATCH] fix: Replaced pathlib relative_to with os.relpath (#1505) * fix: Replaced pathlib relative_to with os.relpath * Formatted with black --- snakemake/deployment/conda.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)