Block cluttering of the user's home folder

This commit is contained in:
Veronica K. B. Olsen committed 2020-10-04 16:38:53 +02:00
1 parent eaf8e83d40
commit 2cc12490d8
3 files changed
+11 -8

No files matched your search

+4
View File
@@ -757,6 +757,10 @@ class NWProject():
if self.projPath is None or self.projPath == "":
return False
if self.projPath == os.path.expanduser("~"):
# Don't make a mess in the user's home folder
return False
self.projMeta = os.path.join(self.projPath, "meta")
self.projCache = os.path.join(self.projPath, "cache")
self.projContent = os.path.join(self.projPath, "content")