Skip to content

Instantly share code, notes, and snippets.

@oglops
Last active August 29, 2015 14:26
Show Gist options
  • Save oglops/3edcf7474a3d0b7c27a6 to your computer and use it in GitHub Desktop.
Save oglops/3edcf7474a3d0b7c27a6 to your computer and use it in GitHub Desktop.
__init__.py modified for PyQt4-4.11.4-gpl-Py2.7-Qt4.8.6-x64-maya-2016
import os
import QtGui
if 'maya' not in str(QtGui.qApp.applicationName()).lower():
dll = os.path.abspath(__file__ + "/../../../../DLLs")
if dll not in os.environ["PATH"]:
os.environ["PATH"] = dll + os.pathsep + os.environ["PATH"]
print 'Not in Maya,insert Dlls dir to path:\n', os.environ["PATH"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment