From 3115d47d6deb411494d132a6f2f61144f5e92307 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 10 Jun 2024 20:17:37 +0200 Subject: [PATCH] project/urljoin --- cd/project.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cd/project.py b/cd/project.py index c4e79d4..ad7aca1 100644 --- a/cd/project.py +++ b/cd/project.py @@ -1,8 +1,10 @@ """CI project.""" + from __future__ import annotations from pathlib import Path from typing import TYPE_CHECKING +from urllib import urljoin if TYPE_CHECKING: from cd.projects import Projects @@ -37,4 +39,4 @@ class Project: if value := projects.environment.get(variable, None): self.root = value # url - self.url = Path(projects.url) / self.name + self.url = urljoin(projects.url, self.name)