mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
header generation script: create dir if it does not exist
This commit is contained in:
parent
de2d73987f
commit
6357fa7597
@ -90,6 +90,11 @@ def copy_changed(inputdir, outputdir, prefix=''):
|
||||
Copies files from inputdir to outputdir if they don't exist in
|
||||
ouputdir or if their content changed
|
||||
"""
|
||||
|
||||
# Make sure output directory exists:
|
||||
if not os.path.isdir(outputdir):
|
||||
os.makedirs(outputdir)
|
||||
|
||||
for f in os.listdir(inputdir):
|
||||
fni = os.path.join(inputdir, f)
|
||||
if os.path.isfile(fni):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user