parent
a757855b38
commit
3115d47d6d
1 changed files with 3 additions and 1 deletions
|
@ -1,8 +1,10 @@
|
||||||
"""CI project."""
|
"""CI project."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
from urllib import urljoin
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from cd.projects import Projects
|
from cd.projects import Projects
|
||||||
|
@ -37,4 +39,4 @@ class Project:
|
||||||
if value := projects.environment.get(variable, None):
|
if value := projects.environment.get(variable, None):
|
||||||
self.root = value
|
self.root = value
|
||||||
# url
|
# url
|
||||||
self.url = Path(projects.url) / self.name
|
self.url = urljoin(projects.url, self.name)
|
||||||
|
|
Loading…
Reference in a new issue