Update client/ayon_core/hosts/hiero/api/workio.py

Co-authored-by: Kayla Man <64118225+moonyuet@users.noreply.github.com>
This commit is contained in:
Toke Jepsen 2024-05-02 12:28:27 +01:00 committed by GitHub
parent e3619120ff
commit 3fef14e2e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,9 +52,11 @@ def open_file(filepath):
project = hiero.core.projects()[-1]
# Close previous project if its different to the current project.
# Close previous project if its different to the current project.
filepath = filepath.replace(os.path.sep, "/")
if project.path() != filepath:
# open project file
hiero.core.openProject(filepath.replace(os.path.sep, "/"))
hiero.core.openProject(filepath)
project.close()