1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-05 18:42:29 +01:00
ScreenPlay/Tools/qdoc.py
Elias Steurer 64cde196eb Update qdoc and formatting
turns out we need the Q_PROPERTY setter
in the cpp file for qdoc to recognize it
2023-01-28 11:02:10 +01:00

26 lines
600 B
Python

#!/usr/bin/python3
# SPDX-License-Identifier: LicenseRef-EliasSteurerTachiom OR AGPL-3.0-only
import subprocess
import os
import shutil
from sys import stdout
import defines
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()