Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save rdb/e2a18c0532c198cb0225d3cdb8369d9a to your computer and use it in GitHub Desktop.

Select an option

Save rdb/e2a18c0532c198cb0225d3cdb8369d9a to your computer and use it in GitHub Desktop.
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