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()