From 9a7b291fdcedd9063bf9e9ab66283f211546e6fd Mon Sep 17 00:00:00 2001 From: stepan Date: Wed, 9 Aug 2023 22:05:05 +0200 Subject: [PATCH] LayoutDirDistribution: make sure the output directory for the sentinel exists --- mx.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mx.py b/mx.py index 7e54176a..759ca920 100755 --- a/mx.py +++ b/mx.py @@ -6656,7 +6656,9 @@ def classpath_repr(self, resolve=True): def make_archive(self): super().make_archive() - with open(self._default_path(), 'w'): + sentinel = self._default_path() + os.makedirs(os.path.abspath(os.path.dirname(sentinel)), exist_ok=True) + with open(sentinel, 'w'): pass def getArchivableResults(self, use_relpath=True, single=False):