[UPD] script git_tool: better code repo

This commit is contained in:
Mathieu Benoit 2025-05-12 15:06:25 -04:00
parent fc842fc3f2
commit 0149a27604

View file

@ -258,11 +258,11 @@ class GitTool:
"""
lst_filter_group = filter_group.split(",") if filter_group else []
manifest_file = self.get_manifest_file(repo_path=repo_path)
if manifest_file.startswith("/home/"):
if os.path.isabs(manifest_file):
# This is a absolute path
filename = manifest_file
else:
filename = f"{repo_path}{manifest_file}"
filename = os.path.normpath(os.path.join(repo_path, manifest_file))
lst_repo = []
with open(filename) as xml:
xml_as_string = xml.read()