From 879a7294b944327c992eaf9a36f570a98aa619b5 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Wed, 9 Jan 2019 11:46:16 +0100 Subject: [PATCH] Create the directory containing the skip_file if needed. --- kiwixbuild/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kiwixbuild/utils.py b/kiwixbuild/utils.py index 223e69c..8109863 100644 --- a/kiwixbuild/utils.py +++ b/kiwixbuild/utils.py @@ -161,6 +161,7 @@ class Context: def _finalise(self): if self.autoskip_file is not None: + os.makedirs(os.path.dirname(self.autoskip_file), exist_ok=True) with open(self.autoskip_file, 'w'): pass