File tree 1 file changed +6
-13
lines changed
1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -515,15 +515,7 @@ def _create_launchers(self):
515
515
command = 'wscript.exe' ,
516
516
args = r'Noshell.vbs wpcp.bat' )
517
517
518
- # Multi-Qt launchers (Qt5 has priority if found)
519
- self .create_launcher ('Qt Demo.exe' , 'qt.ico' ,
520
- command = 'wscript.exe' ,
521
- args = r'Noshell.vbs qtdemo.bat' )
522
-
523
- self .create_launcher ('Qt Assistant.exe' , 'qtassistant.ico' ,
524
- command = 'wscript.exe' ,
525
- args = r'Noshell.vbs qtassistant.bat' )
526
-
518
+ # Multi-Qt launchers
527
519
self .create_launcher ('Qt Designer.exe' , 'qtdesigner.ico' ,
528
520
command = 'wscript.exe' ,
529
521
args = r'Noshell.vbs qtdesigner.bat' )
@@ -930,10 +922,11 @@ def _create_batch_scripts(self):
930
922
self .create_batch_script ('qtdemo.bat' ,r"""@echo off
931
923
call "%~dp0env_for_icons.bat"
932
924
cd/D "%WINPYWORKDIR%"
933
- if "%QT_API%"=="pyqt5" (
934
- "%WINPYDIR%\python.exe" "%WINPYDIR%\Lib\site-packages\PyQt5\examples\qtdemo\qtdemo.py"
935
- ) else (
936
- "%WINPYDIR%\pythonw.exe" "%WINPYDIR%\Lib\site-packages\PyQt4\examples\demos\qtdemo\qtdemo.pyw"
925
+ if exist "%WINPYDIR%\Lib\site-packages\PyQt5\examples\qtdemo\qtdemo.py" (
926
+ "%WINPYDIR%\python.exe" "%WINPYDIR%\Lib\site-packages\PyQt5\examples\qtdemo\qtdemo.py"
927
+ )
928
+ if exist "%WINPYDIR%\Lib\site-packages\PyQt4\examples\demos\qtdemo\qtdemo.pyw" (
929
+ "%WINPYDIR%\pythonw.exe" "%WINPYDIR%\Lib\site-packages\PyQt4\examples\demos\qtdemo\qtdemo.pyw"
937
930
)
938
931
""" )
939
932
You can’t perform that action at this time.
0 commit comments