From 1966482407158c13e7ff6db53a8732ab7103cc4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Je=C5=BEek?= Date: Tue, 27 Jun 2023 11:04:06 +0200 Subject: [PATCH] Update openpype/hosts/resolve/api/workio.py Co-authored-by: Roy Nieterau --- openpype/hosts/resolve/api/workio.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openpype/hosts/resolve/api/workio.py b/openpype/hosts/resolve/api/workio.py index bc32f7802e..511254d29b 100644 --- a/openpype/hosts/resolve/api/workio.py +++ b/openpype/hosts/resolve/api/workio.py @@ -87,7 +87,8 @@ def current_file(): name = project.GetName() fname = name + exported_project_ext current_file = os.path.join(current_dir, fname) - return os.path.normpath(current_file) if current_file else None + if current_file: + return os.path.normpath(current_file) def work_root(session):