Skip to content

Commit b594886

Browse files
author
stonebig
committed
PyQt5 pyuic fix
1 parent eaeaef6 commit b594886

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

winpython/wppm.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,13 @@ def handle_specific_packages(self, package):
449449
self.create_file(package, name, '.',
450450
contents.replace('.', './Lib/site-packages/%s' % package.name))
451451
# pyuic script
452-
tmp_string = r'''@echo off
452+
if package.name.lower() == 'pyqt5':
453+
# see http://code.activestate.com/lists/python-list/666469/
454+
tmp_string = r'''@echo off
455+
python -m PyQt5.uic.pyuic %1 %2 %3 %4 %5 %6 %7 %8 %9'''
456+
457+
else:
458+
tmp_string = r'''@echo off
453459
python "%WINPYDIR%\Lib\site-packages\package.name\uic\pyuic.py" %1 %2 %3 %4 %5 %6 %7 %8 %9'''
454460

455461
self.create_file(package, 'pyuic%s.bat' % package.name[-1],

0 commit comments

Comments
 (0)