3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-07 18:05:21 +00:00

[Doxygen] Put the path to the directory containing the Z3py package

at the beginning of the search path so it is picked up first. This
is to try to avoid picking an installed copy of Z3py.
This commit is contained in:
Dan Liew 2017-04-25 11:47:50 +01:00
parent e309174ec9
commit cb6baa8bcb

View file

@ -165,7 +165,9 @@ try:
print("Generated C and .NET API documentation.")
shutil.rmtree(os.path.realpath(TEMP_DIR))
print("Removed temporary directory \"{}\"".format(TEMP_DIR))
sys.path.append(os.path.dirname(Z3PY_PACKAGE_PATH))
# Put z3py at the beginning of the search path to try to avoid picking up
# an installed copy of Z3py.
sys.path.insert(0, os.path.dirname(Z3PY_PACKAGE_PATH))
pydoc.writedoc('z3')
shutil.move('z3.html', os.path.join(OUTPUT_DIRECTORY, 'html', 'z3.html'))
print("Generated Python documentation.")