Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 764dc34

Browse files
committed
Merge pull request #342 from stonebig/master
remove QtDemo and QtAssistant icons
2 parents d0e042e + 4123820 commit 764dc34

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

make.py

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -515,15 +515,7 @@ def _create_launchers(self):
515515
command='wscript.exe',
516516
args=r'Noshell.vbs wpcp.bat')
517517

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
527519
self.create_launcher('Qt Designer.exe', 'qtdesigner.ico',
528520
command='wscript.exe',
529521
args=r'Noshell.vbs qtdesigner.bat')
@@ -930,10 +922,11 @@ def _create_batch_scripts(self):
930922
self.create_batch_script('qtdemo.bat',r"""@echo off
931923
call "%~dp0env_for_icons.bat"
932924
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"
937930
)
938931
""")
939932

0 commit comments

Comments
 (0)