From 49c046cb3d7b33d5b655958547e39c6e0d8c4cc3 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 9 Jun 2024 18:41:20 +0200 Subject: [PATCH] split --- cd/projects.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cd/projects.py b/cd/projects.py index 616ff2d..9094c20 100644 --- a/cd/projects.py +++ b/cd/projects.py @@ -16,7 +16,9 @@ class Projects: # group, name for variable in GROUP_AND_NAME: if value := self.environment.get(variable, None): - self.group, self.name = path.split(value) + path = Path(value) + self.group = path.parent + self.name = path.name # url for variable in SERVER_URL: if value := self.environment.get(variable, None):