mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix project name duplication in project folders
This commit is contained in:
parent
d5643d2e9b
commit
77a12f49f8
1 changed files with 7 additions and 6 deletions
|
|
@ -28,13 +28,14 @@ def concatenate_splitted_paths(split_paths, anatomy):
|
|||
# backward compatibility
|
||||
if "__project_root__" in path_items:
|
||||
for root, root_path in anatomy.roots.items():
|
||||
if not os.path.exists(str(root_path)):
|
||||
log.debug("Root {} path path {} not exist on \
|
||||
computer!".format(root, root_path))
|
||||
if not root_path:
|
||||
continue
|
||||
clean_items = ["{{root[{}]}}".format(root),
|
||||
r"{project[name]}"] + clean_items[1:]
|
||||
output.append(os.path.normpath(os.path.sep.join(clean_items)))
|
||||
root_items = [
|
||||
"{{root[{}]}}".format(root),
|
||||
"{project[name]}"
|
||||
]
|
||||
root_items.extend(clean_items[1:])
|
||||
output.append(os.path.normpath(os.path.sep.join(root_items)))
|
||||
continue
|
||||
|
||||
output.append(os.path.normpath(os.path.sep.join(clean_items)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue