Skip to content

Commit 4ac1987

Browse files
authored
Merge pull request #629 from stonebig/master
qtlinguist for PySide2
2 parents fe5dde9 + 2ac8d7f commit 4ac1987

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

make.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -542,9 +542,9 @@ def _create_launchers(self):
542542
command='wscript.exe',
543543
args=r'Noshell.vbs qtdesigner.bat')
544544

545-
# self.create_launcher('Qt Linguist.exe', 'qtlinguist.ico',
546-
# command='wscript.exe',
547-
# args=r'Noshell.vbs qtlinguist.bat')
545+
self.create_launcher('Qt Linguist.exe', 'qtlinguist.ico',
546+
command='wscript.exe',
547+
args=r'Noshell.vbs qtlinguist.bat')
548548

549549
# Jupyter launchers
550550
self.create_launcher('IPython Qt Console.exe', 'ipython.ico',
@@ -669,7 +669,7 @@ def _create_batch_scripts_initial(self):
669669
rem ******************
670670
rem handle Pyzo configuration part
671671
rem ******************
672-
mkdir %HOME%\.pyzo
672+
if not exist "%HOME%\.pyzo" mkdir %HOME%\.pyzo
673673
if exist "%HOME%\.pyzo\config.ssdf" goto after_pyzo_conf
674674
set tmp_pyz="%HOME%\.pyzo\config.ssdf"
675675
echo shellConfigs2 = list:>>%tmp_pyz%
@@ -1188,10 +1188,14 @@ def _create_batch_scripts(self):
11881188
) else (
11891189
cd/D "%WINPYDIR%\Lib\site-packages\PyQt5"
11901190
"%WINPYDIR%\Lib\site-packages\PyQt5\linguist.exe" %*
1191-
) else (
1191+
)
1192+
) else if exist "%WINPYDIR%\Lib\site-packages\PyQt4\linguist.exe" (
11921193
cd/D "%WINPYDIR%\Lib\site-packages\PyQt4"
11931194
"%WINPYDIR%\Lib\site-packages\PyQt4\linguist.exe" %*
1195+
) else (
1196+
"%WINPYDIR%\Lib\site-packages\PySide2\linguist.exe" %*
11941197
)
1198+
11951199
""")
11961200

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

0 commit comments

Comments
 (0)