Created
October 27, 2015 10:56
-
-
Save BigRoy/5497e6ad0d2d1c17f0d3 to your computer and use it in GitHub Desktop.
Testing inspect filepath options for Pyblish plugins
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
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