dubux wrote:
I am trying to import modules dynamicly from a directory (modules/) in
which i have __init__.py with the __all__ variable set. Everything
imports correctly and I have verified this however I am stuck on
actually using my classes in the dynamicly imported modules.
this bit is in my m
On Mon, 10 Jan 2011 20:42:17 -0800, dubux wrote:
> After loading all the modules, i try to do something like:
>
> instance = modules.modulename.class()
No you don't. class is a reserved word in Python, you would get a
SyntaxError if you did that.
Please post the error you get, including the co