From 1ce5471b6fb1571feeb38b121b482e772515eeb3 Mon Sep 17 00:00:00 2001 From: Thierry Date: Tue, 22 Mar 2016 23:33:09 +0100 Subject: [PATCH] modification of pyuic4.bat (see #299) this pyuic4 works withing normal command prompt (and not only from from "WinPython Command Prompt") I also modified the script pyuic5.bat (even if I could not test) --- winpython/wppm.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/winpython/wppm.py b/winpython/wppm.py index f3fd84c6..cf823c8c 100644 --- a/winpython/wppm.py +++ b/winpython/wppm.py @@ -541,13 +541,13 @@ def handle_specific_packages(self, package): if package.name.lower() == 'pyqt5': # see http://code.activestate.com/lists/python-list/666469/ tmp_string = r'''@echo off -if "%WINPYDIR%"=="" call %~dp0..\..\scripts\env.bat -python -m PyQt5.uic.pyuic %1 %2 %3 %4 %5 %6 %7 %8 %9''' +if "%WINPYDIR%"=="" call "%~dp0..\..\scripts\env.bat" +"%WINPYDIR%\python.exe" -m PyQt5.uic.pyuic %1 %2 %3 %4 %5 %6 %7 %8 %9''' else: tmp_string = r'''@echo off -if "%WINPYDIR%"=="" call %~dp0..\..\scripts\env.bat -python "%WINPYDIR%\Lib\site-packages\package.name\uic\pyuic.py" %1 %2 %3 %4 %5 %6 %7 %8 %9''' +if "%WINPYDIR%"=="" call "%~dp0..\..\scripts\env.bat" +"%WINPYDIR%\python.exe" "%WINPYDIR%\Lib\site-packages\package.name\uic\pyuic.py" %1 %2 %3 %4 %5 %6 %7 %8 %9''' self.create_file(package, 'pyuic%s.bat' % package.name[-1], 'Scripts', tmp_string.replace('package.name', package.name))