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

Skip to content

Commit b1eaeeb

Browse files
committed
Merge pull request #301 from thierryBottaro/patch-1
modification of pyuic4.bat (see #299)
2 parents e207bae + 1ce5471 commit b1eaeeb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

winpython/wppm.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -541,13 +541,13 @@ def handle_specific_packages(self, package):
541541
if package.name.lower() == 'pyqt5':
542542
# see http://code.activestate.com/lists/python-list/666469/
543543
tmp_string = r'''@echo off
544-
if "%WINPYDIR%"=="" call %~dp0..\..\scripts\env.bat
545-
python -m PyQt5.uic.pyuic %1 %2 %3 %4 %5 %6 %7 %8 %9'''
544+
if "%WINPYDIR%"=="" call "%~dp0..\..\scripts\env.bat"
545+
"%WINPYDIR%\python.exe" -m PyQt5.uic.pyuic %1 %2 %3 %4 %5 %6 %7 %8 %9'''
546546

547547
else:
548548
tmp_string = r'''@echo off
549-
if "%WINPYDIR%"=="" call %~dp0..\..\scripts\env.bat
550-
python "%WINPYDIR%\Lib\site-packages\package.name\uic\pyuic.py" %1 %2 %3 %4 %5 %6 %7 %8 %9'''
549+
if "%WINPYDIR%"=="" call "%~dp0..\..\scripts\env.bat"
550+
"%WINPYDIR%\python.exe" "%WINPYDIR%\Lib\site-packages\package.name\uic\pyuic.py" %1 %2 %3 %4 %5 %6 %7 %8 %9'''
551551

552552
self.create_file(package, 'pyuic%s.bat' % package.name[-1],
553553
'Scripts', tmp_string.replace('package.name', package.name))

0 commit comments

Comments
 (0)