[UPD] script git_tool: better code repo
This commit is contained in:
parent
fc842fc3f2
commit
0149a27604
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue