From 742144bc6b1b7e1755cba201229a7bcee3685fbc Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 21 Mar 2022 11:33:14 +0100 Subject: [PATCH 1/2] fix: Replaced pathlib relative_to with os.relpath --- 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..44d714b61 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) From 1cdfc5e29ed5554515073f1bf1174b257dd19ce1 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 21 Mar 2022 16:01:35 +0100 Subject: [PATCH 2/2] 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 44d714b61..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( - os.path.relpath(path = deploy_file, start = os.getcwd()) + os.path.relpath(path=deploy_file, start=os.getcwd()) ) ) conda = Conda(self._container_img)