Last active
June 27, 2016 22:30
-
-
Save rdb/e2a18c0532c198cb0225d3cdb8369d9a to your computer and use it in GitHub Desktop.
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
| from panda3d import core, direct, physics, fx, egg | |
| import sys | |
| if len(sys.argv) > 1: | |
| classname = sys.argv[1] | |
| else: | |
| classname = input("class> ") | |
| for module in [core, direct, physics, fx, egg]: | |
| if hasattr(module, classname): | |
| print('from %s import *' % (module.__name__)) | |
| sys.exit(0) | |
| print('not found!') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment