Skip to content

Instantly share code, notes, and snippets.

@EBNull
Created July 17, 2013 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EBNull/6020917 to your computer and use it in GitHub Desktop.
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.
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