Create directories of unity temporary files

pull/414/head
Minijackson 9 years ago
parent 32b43e77ab
commit 3b688c6114
  1. 3
      mesonbuild/backend/backends.py

@ -125,6 +125,9 @@ class Backend():
outfileabs = os.path.join(self.environment.get_build_dir(), outfilename) outfileabs = os.path.join(self.environment.get_build_dir(), outfilename)
outfileabs_tmp = outfileabs + '.tmp' outfileabs_tmp = outfileabs + '.tmp'
abs_files.append(outfileabs) abs_files.append(outfileabs)
outfileabs_tmp_dir = os.path.dirname(outfileabs_tmp)
if not os.path.exists(outfileabs_tmp_dir):
os.makedirs(outfileabs_tmp_dir)
outfile = open(outfileabs_tmp, 'w') outfile = open(outfileabs_tmp, 'w')
langlist[language] = outfile langlist[language] = outfile
result.append(outfilename) result.append(outfilename)

Loading…
Cancel
Save