Skip to content

Commit

Permalink
add python 2 compatibility to path_tools
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitConnan committed Feb 28, 2022
1 parent 1b184a0 commit 075b805
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openpype/lib/path_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ def concatenate_splitted_paths(split_paths, anatomy):
log.debug("Root {} path path {} not exist on \
computer!".format(root, root_path))
continue
clean_items = [f"{{root[{root}]}}", "{project[name]}"] \
+ clean_items[1:]
clean_items = ["{{root[{}]}}".format(root),
r"{project[name]}"] + clean_items[1:]
output.append(os.path.normpath(os.path.sep.join(clean_items)))
continue

Expand Down

0 comments on commit 075b805

Please sign in to comment.