⇤ ← Revision 1 as of 2005-02-21 05:44:20
630
Comment: notes on dynamically loading Python modules
|
← Revision 2 as of 2008-11-15 14:00:47 ⇥
630
converted to 1.6 markup
|
No differences found! |
You can load a module dynamically like so:
1 __import__("os")
If you do that, though, "os" isn't bound to anything.
Once you have the module, you probably want to find classes and functions and data inside of it.
Use getattr: