From 713fa5243c4b398e32973930e986a71642b11ffc Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Fri, 23 Dec 2022 16:09:28 +0100 Subject: [PATCH] Fixed publisher service --- src/cpl_cli/publish/publisher_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpl_cli/publish/publisher_service.py b/src/cpl_cli/publish/publisher_service.py index b1639023..22ebe291 100644 --- a/src/cpl_cli/publish/publisher_service.py +++ b/src/cpl_cli/publish/publisher_service.py @@ -64,7 +64,7 @@ class PublisherService(PublisherABC): :return: """ if self._src_path_part in file: - file = file.replace(self._src_path_part, '', 1) + file = file.split(self._src_path_part)[1].replace(self._src_path_part, '', 1) dirs = os.path.dirname(file).split(self._path_mark) for d in dirs: