From 92e5d10fdc05c79a5cdc501fef79d8e0b007f23d Mon Sep 17 00:00:00 2001 From: Milan Kolar Date: Tue, 20 Apr 2021 21:11:24 +0200 Subject: [PATCH] fix conversion of path to string --- tools/build_dependencies.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tools/build_dependencies.py b/tools/build_dependencies.py index 570c61cfdb..fb52e2b5fd 100644 --- a/tools/build_dependencies.py +++ b/tools/build_dependencies.py @@ -78,15 +78,13 @@ build_dir = "exe.{}-{}".format(get_platform(), sys.version[0:3]) # create full path if platform.system().lower() == "darwin": - build_dir = os.path.join(Path(os.path.dirname(__file__)).parent, - "build", - "OpenPype.app", - "Contents", - "MacOS") + build_dir = Path(os.path.dirname(__file__)).parent.joinpath( + "build", + "OpenPype.app", + "Contents", + "MacOS") else: - build_dir = os.path.join(Path(os.path.dirname(__file__)).parent, - "build", - build_dir) + build_dir = Path(os.path.dirname(__file__)).parent / "build" / build_dir _print(f"Using build at {build_dir}", 2) if not build_dir.exists():