From 3232fc68be53a08898922959dc105f0f20051383 Mon Sep 17 00:00:00 2001 From: Phyks Date: Tue, 9 Jun 2015 18:04:33 +0200 Subject: [PATCH] Ensure Papers dir exist, see issue #27 --- libbmc/config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libbmc/config.py b/libbmc/config.py index c646762..1360639 100644 --- a/libbmc/config.py +++ b/libbmc/config.py @@ -82,6 +82,11 @@ class Config(): except (ValueError, IOError): tools.warning("Config file could not be read.") 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() def save(self):