mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
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:
parent
e3619120ff
commit
3fef14e2e7
1 changed files with 3 additions and 1 deletions
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue