Handle unset FOLDERID_Documents

Addresses #284
This commit is contained in:
Jonathan Harris committed 2018-01-13 11:02:43 +00:00
1 parent e31b4f36e2
commit 3835110ddc
1 file changed
+1 -1
+1 -1
View File
@@ -222,7 +222,7 @@ class Config:
RegCloseKey(sparklekey)
if not self.get('outdir') or not isdir(self.get('outdir')):
self.set('outdir', KnownFolderPath(FOLDERID_Documents))
self.set('outdir', KnownFolderPath(FOLDERID_Documents) or self.home)
def get(self, key):
typ = DWORD()