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):