Skip to content

Instantly share code, notes, and snippets.

@BigRoy
Created October 27, 2015 10:56
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 BigRoy/5497e6ad0d2d1c17f0d3 to your computer and use it in GitHub Desktop.
Save BigRoy/5497e6ad0d2d1c17f0d3 to your computer and use it in GitHub Desktop.
Testing inspect filepath options for Pyblish plugins
cls.__path__ = None
if cls.__module__ != '__main__': # if not local (in-memory)
try:
cls.__path__ = inspect.getfile(cls)
except RuntimeError, e:
print e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment