mirror of
https://github.com/ModOrganizer2/cmake_common.git
synced 2026-07-27 14:06:46 -07:00
Merge pull request #7 from AnyOldName3/pysolate
Run Python in isolated mode so user packages aren't used.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user