Use makedirs instead of mkdir. Closes #247.

pull/250/head
Jussi Pakkanen 10 years ago
parent f32db9afa2
commit e29e4358e6
  1. 2
      interpreter.py
  2. 3
      test cases/common/92 skip subdir/meson.build
  3. 1
      test cases/common/92 skip subdir/subdir1/meson.build
  4. 1
      test cases/common/92 skip subdir/subdir1/subdir2/meson.build

@ -1540,7 +1540,7 @@ class Interpreter():
self.visited_subdirs[subdir] = True
self.subdir = subdir
try:
os.mkdir(os.path.join(self.environment.build_dir, subdir))
os.makedirs(os.path.join(self.environment.build_dir, subdir))
except FileExistsError:
pass
buildfilename = os.path.join(self.subdir, environment.build_filename)

@ -0,0 +1,3 @@
project('foo', 'c')
subdir('subdir1/subdir2')

@ -0,0 +1 @@
error('This should not be called.')
Loading…
Cancel
Save