diff --git a/helpers/PyQt5TranslationMacros.cmake b/helpers/PyQt5TranslationMacros.cmake index d9308ee..e2d6134 100644 --- a/helpers/PyQt5TranslationMacros.cmake +++ b/helpers/PyQt5TranslationMacros.cmake @@ -77,7 +77,7 @@ function(PYQT5_CREATE_TRANSLATION _qm_files) endif() add_custom_command(OUTPUT ${_ts_file} COMMAND ${PYTHON_ROOT}/PCbuild/amd64/python.exe - ARGS -m PyQt5.pylupdate_main ${_lupdate_options} ${_lst_file_srcs} -ts ${_ts_file} + ARGS -I -m PyQt5.pylupdate_main ${_lupdate_options} ${_lst_file_srcs} -ts ${_ts_file} DEPENDS ${_lst_file_srcs} WORKING_DIRECTORY ${PYTHON_ROOT} VERBATIM) diff --git a/python_plugin.cmake b/python_plugin.cmake index 595ba96..eabea9e 100644 --- a/python_plugin.cmake +++ b/python_plugin.cmake @@ -55,6 +55,7 @@ macro(do_src) execute_process( COMMAND ${PYTHON_ROOT}/PCbuild/amd64/python.exe + -I -m PyQt5.uic.pyuic -o "${output}" "${object}" @@ -68,6 +69,7 @@ macro(do_src) execute_process( COMMAND ${PYTHON_ROOT}/PCbuild/amd64/python.exe + -I -m PyQt5.pyrcc_main -o "${output}" "${object}"