chiark / gitweb /
doxygen: solve all problems of mankind by making paths absolute.
authorVladimír Vondruš <mosra@centrum.cz>
Mon, 29 Jan 2018 12:45:41 +0000 (13:45 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 29 Jan 2018 12:46:38 +0000 (13:46 +0100)
doxygen/dox2html5.py

index 20b8cf5663b413803565418d8f5e3734c87eafb5..fee4c88b03f16c1966be6f04e2205fd21f781e03 100755 (executable)
@@ -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)