Add the option to expand ~ to user home directory in export and project path

This commit is contained in:
Veronica K. B. Olsen
2019-10-30 15:47:12 +01:00
parent a5566d8fc3
commit 557b86af64
2 changed files with 16 additions and 0 deletions
+2
View File
@@ -358,6 +358,8 @@ class NWProject():
if projPath is None or projPath == "":
self.projPath = None
else:
if projPath.startswith("~"):
projPath = path.expanduser(projPath)
self.projPath = projPath
self.setProjectChanged(True)
return True