From 075b80563b84e720d1bd18a070b0a194a322a9a8 Mon Sep 17 00:00:00 2001 From: BenoitConnan Date: Mon, 28 Feb 2022 15:09:16 +0100 Subject: [PATCH] add python 2 compatibility to path_tools --- openpype/lib/path_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpype/lib/path_tools.py b/openpype/lib/path_tools.py index 181417c38c2..916e392eb2f 100644 --- a/openpype/lib/path_tools.py +++ b/openpype/lib/path_tools.py @@ -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