diff options
author | Stefan Sauer <ensonic@users.sf.net> | 2019-09-05 21:36:36 +0200 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2019-09-05 21:36:36 +0200 |
commit | 8598188f156cd28df3d061f55614efdb1c4d7162 (patch) | |
tree | 95be1cb03018f956bdaa171e332ca4edf5906336 | |
parent | dec245bb9531cc77d243c81350f2197f69666070 (diff) | |
download | gtk-doc-8598188f156cd28df3d061f55614efdb1c4d7162.tar.gz |
mkhtml2: create output-dir if it does not exist
-rw-r--r-- | gtkdoc/mkhtml2.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtkdoc/mkhtml2.py b/gtkdoc/mkhtml2.py index 0c84483..f54a80d 100644 --- a/gtkdoc/mkhtml2.py +++ b/gtkdoc/mkhtml2.py @@ -1849,6 +1849,8 @@ def run(options): document = options.args[1] output_dir = options.output_dir or os.getcmd() + if options.output_dir and not os.path.isdir(output_dir): + os.mkdir(output_dir) # TODO: pass options.extra_dir sys.exit(main(module, document, output_dir, options.uninstalled, options.src_lang, |