Fix bug in code so it actually checks whether path is absolute

This commit is contained in:
Roy Nieterau 2018-07-21 13:21:28 +02:00
parent ce3861dbaa
commit 0b7ce68571

View file

@ -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