Skip to content
Snippets Groups Projects
Commit 4f59460c authored by s2870355's avatar s2870355
Browse files

fix relative

parent 8768285a
No related branches found
No related tags found
No related merge requests found
Pipeline #71611 failed
......@@ -55,6 +55,7 @@ class job_data:
dir_path = os.getcwd()
file_location = os.path.join(file_dir, depend)
relative_file = file_location.removeprefix(dir_path + os.path.sep)
relative_file = os.path.relpath(relative_file)
return (relative_file.replace("\\", os.path.sep).replace("/", os.path.sep))
@staticmethod
......@@ -111,7 +112,7 @@ class job_data:
def __str__(self) -> str:
name : str = self.location.replace(os.path.sep, '-')
stage : str = self.stage
needs = [ r.replace(os.path.sep, '-') for r in self.depends]
needs = [ r.replace(os.path.sep, '/') for r in self.depends]
if len(self.artifact) != 0:
artifacts = self.artifact
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment