Create the directory containing the skip_file if needed.

This commit is contained in:
Matthieu Gautier 2019-01-09 11:46:16 +01:00
parent 1a0e0ad717
commit 879a7294b9
1 changed files with 1 additions and 0 deletions

View File

@ -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