Block cluttering of the user's home folder

This commit is contained in:
Veronica K. B. Olsen
2020-10-04 16:38:53 +02:00
parent eaf8e83d40
commit 2cc12490d8
3 changed files with 11 additions and 8 deletions
+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")