importing classes from a variable

JustinHJ justinhj at hotmail.com
Fri Jan 19 13:06:38 EST 2001


thanks for the help guys

I think in a nutshell what I needed was the following. I've removed
exception handling to simplify the example...

    fp, pathname, description = imp.find_module( modname )

    print 'importing module', modname
    LoadedModule = imp.load_module( modname, fp, pathname, description)
    LoadedModule.Export(i)






More information about the Python-list mailing list