From: Vladimír Vondruš Date: Mon, 29 Jan 2018 12:45:41 +0000 (+0100) Subject: doxygen: solve all problems of mankind by making paths absolute. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=ab6d91f1a3d16161fda5c36864619c26f47e5a2b;p=blog.git doxygen: solve all problems of mankind by making paths absolute. --- diff --git a/doxygen/dox2html5.py b/doxygen/dox2html5.py index 20b8cf56..fee4c88b 100755 --- a/doxygen/dox2html5.py +++ b/doxygen/dox2html5.py @@ -2117,7 +2117,10 @@ if __name__ == '__main__': # pragma: no cover else: logging.basicConfig(level=logging.INFO) + # Make the Doxyfile path absolute, otherwise everything gets messed up + doxyfile = os.path.abspath(args.doxyfile) + if not args.no_doxygen: - subprocess.run(["doxygen", args.doxyfile], cwd=os.path.dirname(args.doxyfile)) + subprocess.run(["doxygen", doxyfile], cwd=os.path.dirname(doxyfile)) - run(args.doxyfile, args.templates, args.wildcard, args.index_pages) + run(doxyfile, os.path.abspath(args.templates), args.wildcard, args.index_pages)