Ensure Papers dir exist, see issue #27

This commit is contained in:
Phyks 2015-06-09 18:04:33 +02:00
parent 82ed48a9e0
commit 3232fc68be

View File

@ -82,6 +82,11 @@ class Config():
except (ValueError, IOError): except (ValueError, IOError):
tools.warning("Config file could not be read.") tools.warning("Config file could not be read.")
sys.exit(1) sys.exit(1)
try:
folder_exists = make_sure_path_exists(self.get("folder"))
except OSError:
tools.warning("Unable to create paper storage folder.")
sys.exit(1)
self.load_masks() self.load_masks()
def save(self): def save(self):