Use makedirs instead of mkdir. Closes #247.
This commit is contained in:
parent
f32db9afa2
commit
e29e4358e6
|
@ -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.')
|
|
@ -0,0 +1 @@
|
|||
message('I\'m in subdir subdir.')
|
Loading…
Reference in New Issue