Skip to content

Commit

Permalink
[tools] gen_modules_doc.py always check/create output dir
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Dec 20, 2012
1 parent 67ba746 commit 5067a8c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions sw/tools/doxygen_gen/gen_modules_doc.py
Expand Up @@ -289,13 +289,14 @@ def read_module_file(file):
output_dir = options.output_dir
else:
output_dir = os.path.join(paparazzi_home, "doc/manual/generated")
if not os.path.isdir(output_dir):
if options.create_parent_dirs:
print("Output directory " + output_dir + " doesn't exit yet. Creating it.")
os.makedirs(output_dir)
else:
print("Output directory " + output_dir + " not valid.")
sys.exit(1)

if not os.path.isdir(output_dir):
if options.create_parent_dirs:
print("Output directory " + output_dir + " doesn't exit yet. Creating it.")
os.makedirs(output_dir)
else:
print("Output directory " + output_dir + " not valid.")
sys.exit(1)

if options.verbose:
print("Generating module documentation in " + output_dir)
Expand Down

0 comments on commit 5067a8c

Please sign in to comment.