mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
Fix bug in code so it actually checks whether path is absolute
This commit is contained in:
parent
ce3861dbaa
commit
0b7ce68571
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ def switch(asset_name, filepath=None, new=True):
|
|||
"""
|
||||
|
||||
# Ensure filename is absolute
|
||||
if not os.path.abspath(filepath):
|
||||
if not os.path.isabs(filepath):
|
||||
filepath = os.path.abspath(filepath)
|
||||
|
||||
# Get current project
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue