Skip to content

Commit ad150bf

Browse files
authored
Merge pull request #276 from andrewdnolan/make_tmpdir
Make tmpdir if it does not exist
2 parents 739f59a + 7e1b40f commit ad150bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mache/spack/env.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ def make_spack_env(
140140
with open(str(path)) as fp:
141141
template = Template(fp.read())
142142
if tmpdir is not None:
143+
if not os.path.exists(tmpdir):
144+
os.mkdir(tmpdir)
145+
143146
modules = f'{modules}\nexport TMPDIR={tmpdir}'
144147

145148
template_args = dict(

0 commit comments

Comments
 (0)