diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-09-13 09:08:21 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-09-13 18:06:27 +0200 |
| commit | 3b31a65a76de7f29f32c27201b35f5f3c17d14e5 (patch) | |
| tree | 6be074fcec9e13c1159e10222e316005ba7ec5d9 /sources/pyside6 | |
| parent | 5e7fa8991b79bccab8e760a6597a45f25bc197b3 (diff) | |
Documentation/patch_qhp.py: Brush up script
- Fix flake8 warnings
- Warn about errors
- Move line processing into a function for further extension
- Make file a positional argument
Pick-to: 6.3
Change-Id: Ice191b8b78ff3a151581066ae0fc493ecb54fb64
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6')
| -rw-r--r-- | sources/pyside6/doc/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/doc/CMakeLists.txt b/sources/pyside6/doc/CMakeLists.txt index c7dec9c50..5e41abcda 100644 --- a/sources/pyside6/doc/CMakeLists.txt +++ b/sources/pyside6/doc/CMakeLists.txt @@ -217,7 +217,7 @@ else() set(PATCH_QHP_SCRIPT "${CMAKE_CURRENT_LIST_DIR}/../../shiboken6/doc/scripts/patch_qhp.py") file(TO_NATIVE_PATH ${CMAKE_CURRENT_BINARY_DIR}/html/PySide.qhp QHP_FILE) add_custom_command(TARGET apidoc POST_BUILD - COMMAND ${python_executable} ${PATCH_QHP_SCRIPT} -f ${QHP_FILE} -v pyside6 + COMMAND ${python_executable} ${PATCH_QHP_SCRIPT} -v pyside6 ${QHP_FILE} COMMAND "${qhelpgenerator_binary}" ${QHP_FILE} COMMENT "Generating QCH from a QHP file..." VERBATIM |
