Skip to content

Commit

Permalink
LayoutDirDistribution: make sure the output directory for the sentine…
Browse files Browse the repository at this point in the history
…l exists
  • Loading branch information
steve-s committed Aug 9, 2023
1 parent 9dbae73 commit 9a7b291
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9a7b291

Please sign in to comment.