Fix path inconsistencies

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
TheJackiMonster 2023-12-12 16:26:31 +01:00
parent f274cd489f
commit 8beea301ec
No known key found for this signature in database
GPG key ID: D850A5F772E880F9

View file

@ -916,6 +916,10 @@ class MainWindow(QMainWindow, Ui_MainWindow):
If ``loadFromFile`` is False, then it does not load datas from file.
It assumes that the datas have been populated in a different way."""
# Convert project path to OS norm
project = os.path.normpath(project)
if loadFromFile and not os.path.exists(project):
LOGGER.warning("The file {} does not exist. Has it been moved or deleted?".format(project))
F.statusMessage(