1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

Handle unset FOLDERID_Documents

Addresses #284
This commit is contained in:
Jonathan Harris 2018-01-13 11:02:43 +00:00
parent e31b4f36e2
commit 3835110ddc

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()