[PyQt] pyd names in PyQt4

michael h michaelkenth at gmail.com
Fri Jun 3 23:28:32 BST 2016


>
>
> When a app uses as example:
> from PyQt4 import QtNetwork
>
> this does not work, as my pyd is called QtNet.pyd.
> So if I change the above import it runs.
>
> My question is, is there a way to work this around? As changing the apps
> using PyQt4 looks like a wrong way to me.
>
>
You could add some code to your port's PyQt4's __init__.py that runs:

import QtNet
QtNetwork = QtNet

Seemed to work here when I tested it.


- m
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160603/7b87f2d9/attachment.html>


More information about the PyQt mailing list