Created
July 17, 2013 14:15
-
-
Save EBNull/6020917 to your computer and use it in GitHub Desktop.
Add PyQt4 to a virtualenv when it's installed on the system. Place PyQt4.pth into your local site-packages dir.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys; import os; _p = os.path.join(sys.real_prefix, 'lib', 'site-packages'); sys.path.append(_p); import sip; import PyQt4; sys.path.remove(_p) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment