Skip to content

Commit

Permalink
Fix path inconsistencies
Browse files Browse the repository at this point in the history
Signed-off-by: TheJackiMonster <[email protected]>
  • Loading branch information
TheJackiMonster committed Dec 12, 2023
1 parent f274cd4 commit 8beea30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manuskript/mainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,10 @@ def loadProject(self, project, loadFromFile=True):
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(
Expand Down

0 comments on commit 8beea30

Please sign in to comment.