From 0149a27604239d41e7507e8d0a66d82ef42d39d2 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Mon, 12 May 2025 15:06:25 -0400 Subject: [PATCH] [UPD] script git_tool: better code repo --- script/git/git_tool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/git/git_tool.py b/script/git/git_tool.py index 27f30fa..87af464 100644 --- a/script/git/git_tool.py +++ b/script/git/git_tool.py @@ -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()