8000 Merge pull request #1400 from stonebig/master · LeeXyan/winpython@3043097 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3043097

Browse files
authored
Merge pull request winpython#1400 from stonebig/master
move Pyqt5_tools config as winpython.ini option
2 parents 327cdb3 + a20aa52 commit 3043097

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

make.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -803,15 +803,6 @@ def _create_batch_scripts_initial(self):
803803
:pyqt5_conf_exist
804804
805805
806-
rem ******************
807-
rem handle pyqt5_tools if included
808-
rem ******************
809-
set tmp_pyz=%WINPYDIR%\Lib\site-packages\pyqt5_tools
810-
if not exist "%tmp_pyz%" goto end_pyqt5_tools_conf
811-
set QT_PLUGIN_PATH=%WINPYDIR%\Lib\site-packages\pyqt5_tools\Qt\plugins
812-
:end_pyqt5_tools_conf
813-
814-
815806
rem ******************
816807
rem WinPython.ini part (removed from nsis)
817808
rem ******************
@@ -836,6 +827,7 @@ def _create_batch_scripts_initial(self):
836827
echo #JULIA_EXE=julia.exe
837828
echo #JULIA=%%JULIA_HOME%%%%JULIA_EXE%%
838829
echo #JULIA_PKGDIR=%%WINPYDIRBASE%%\settings\.julia
830+
echo #QT_PLUGIN_PATH=%%WINPYDIR%%\Lib\site-packages\pyqt5_tools\Qt\plugins
839831
)>> "%winpython_ini%"
840832
841833
""",
@@ -933,15 +925,6 @@ def _create_batch_scripts_initial(self):
933925
}
934926
935927
936-
#####################
937-
### handle pyqt5_tools if included
938-
#####################
939-
$env:tmp_pyz = "$env:WINPYDIR\Lib\site-packages\pyqt5_tools"
940-
if (Test-Path "$env:tmp_pyz") {
941-
$env:QT_PLUGIN_PATH = "WINPYDIR\Lib\site-packages\pyqt5_tools\Qt\plugins"
942-
}
943-
944-
945928
#####################
946929
### WinPython.ini part (removed from nsis)
947930
#####################
@@ -966,6 +949,7 @@ def _create_batch_scripts_initial(self):
966949
"#JULIA_EXE=julia.exe" | Add-Content -Path $env:winpython_ini
967950
"#JULIA=%%JULIA_HOME%%%%JULIA_EXE%%" | Add-Content -Path $env:winpython_ini
968951
"#JULIA_PKGDIR=%%WINPYDIRBASE%%\settings\.julia" | Add-Content -Path $env:winpython_ini
952+
"#QT_PLUGIN_PATH=%%WINPYDIR%%\Lib\site-packages\pyqt5_tools\Qt\plugins" | Add-Content -Path $env:winpython_ini
969953
}
970954
971955

0 commit comments

Comments
 (0)
0