Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/python/convertDoxygen.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
dll_path = GetArgValue(['--dllPath'])
use_cached_parsing = GetArg(['--cacheParsing', '-c'])

# Support staged installs (DESTDIR) on UNIX platforms.
# https://www.gnu.org/prep/standards/html_node/DESTDIR.html
destdir = os.environ.get('DESTDIR', '')
if destdir and os.name == 'posix':
output_file = destdir + output_file
python_path = destdir + python_path

SetDebugMode(GetArg(['--debug', '-d']))

if not (xml_file or xml_index_file) or not output_file or GetArg(['--help', '-h']):
Expand Down