I am working in Eclipse but running my code in Nuke. Nuke uses PySide, but it's built into Nuke so Eclipse can't parse it. I cannot install PySide in my environment (VFX studio rules) but I do have PyQt4. So I can change my import from PySide to PyQt4 and it parses correctly in Eclipse - but it will error when loading Nuke. So what I need is a way to get Eclipse/PyDev to use PyQt4 while Nuke uses PySide. I thought perhaps I could use PyDev's String Substitution scheme but either it doesn't do what I want or I'm not using it right. Any help is greatly appreciated!
Den
Use Rob's qtshim.py.
You'll find it here: https://github.com/rgalanakis/practicalmayapython/blob/master/src/chapter5/qtshim.py
Import QtCore
, QtGui
etc. From qtshim
instead of PySide or PyQt. Code written with this will work for both environments.
I use my own version of something like this to work with PyQt and PySide.
Hope that was useful.