[PyQt] Problem with resource imports in pyuic generated files

Phil Thompson phil at riverbankcomputing.com
Tue Mar 8 13:37:03 GMT 2016


On 17 Feb 2016, at 5:06 am, Elvis Stansvik <elvstone at gmail.com> wrote:
> Though, Phil, I cannot help but ask: Would you accept a patch for a --resources-package <package> flag to pyuic? When given, it would generate resource imports from the named package instead of assuming resources were generated into the same package as the _ui.py.

I've added --import-from <PACKAGE> to pyuic5 in tonight's snapshot.

--from-imports is equivalent to --import-from .

...not very well tested.

Phil


More information about the PyQt mailing list