1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-05 18:42:29 +01:00
ScreenPlay/Tools/qdoc.py

26 lines
600 B
Python
Raw Normal View History

2023-01-19 10:33:49 +01:00
#!/usr/bin/python3
# SPDX-License-Identifier: LicenseRef-EliasSteurerTachiom OR AGPL-3.0-only
import subprocess
import os
import shutil
2022-11-02 12:15:34 +01:00
from sys import stdout
import defines
2022-11-02 12:15:34 +01:00
stdout.reconfigure(encoding='utf-8')
def main():
shutil.rmtree('../Docs/html/')
os.mkdir('../Docs/html/')
qt_bin_path = defines.QT_BIN_PATH
executable = "qdoc"
if os.name == 'nt':
executable = "qdoc.exe"
executable = qt_bin_path.joinpath(executable)
process = subprocess.Popen(f"{executable} ../Docs/config.qdocconf", stdout=subprocess.PIPE)
if __name__ == "__main__":
main()