8000 bug fix · winpython/winpython@add1bce · GitHub
[go: up one dir, main page]

Skip to content

Commit add1bce

Browse files
author
stonebig
< 8000 span class="pl-1">committed
bug fix
1 parent 00bb1e6 commit add1bce

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

make.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,8 +849,13 @@ def _create_batch_scripts(self):
849849
self.create_batch_script('qtlinguist.bat',r"""@echo off
850850
call "%~dp0env_for_icons.bat"
851851
cd/D "%WINPYWORKDIR%"
852-
if "%QT_API%"=="pyqt5" "%WINPYDIR%\Lib\site-packages\PyQt5\linguist.exe" %*
853-
if not "%QT_API%"=="pyqt5" "%WINPYDIR%\Lib\site-packages\PyQt4\linguist.exe" %*
852+
if "%QT_API%"=="pyqt5" (
853+
cd/D "%WINPYDIR%\Lib\site-packages\PyQt5"
854+
"%WINPYDIR%\Lib\site-packages\PyQt5\linguist.exe" %*
855+
) else (
856+
cd/D "%WINPYDIR%\Lib\site-packages\PyQt4"
857+
"%WINPYDIR%\Lib\site-packages\PyQt4\linguist.exe" %*
858+
)
854859
""")
855860

856861
self.create_python_batch('register_python.bat', 'register_python',

0 commit comments

Comments
 (0)
0