Update openpype/hosts/resolve/api/workio.py

Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
Jakub Ježek 2023-06-27 11:04:06 +02:00 committed by GitHub
parent e81a161169
commit 1966482407
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,8 @@ def current_file():
name = project.GetName() name = project.GetName()
fname = name + exported_project_ext fname = name + exported_project_ext
current_file = os.path.join(current_dir, fname) 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): def work_root(session):