[PyQt] Problem with resource imports in pyuic generated files

Elvis Stansvik elvstone at gmail.com
Tue Mar 8 17:17:56 GMT 2016


Den 8 mar 2016 2:37 em skrev "Phil Thompson" <phil at riverbankcomputing.com>:
>
> 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.

Excellent. Thanks Phil.

Elvis

>
> Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160308/c485e6a2/attachment.html>


More information about the PyQt mailing list