Perhaps I'm a bit not understanding the issue, but...
Is it possibly to pass in a class reference as one
of the parameters and import it in a new namespace,
such as:
def myimport(baseClassName):
lt=time.strftime('%Y%m%d%H%M%S',time.localtime(time.time()))
exec('import baseClassName as baseClass'+lt)
and destroy the class if you don't want it to persist.
I think this should load much faster if it's already
a globally available class.
You can also use the imp module for:
args=imp.find_module('os')
if args:
myos=imp.load_module(['os']+list(args))
else:
...
You can also use the imp module in the previous section
to reload rather than simply load, so I think it checks
for changes in the baseClass.
Matt Feifarek wrote:
> A codebase management problem has developed for us where we have created a
> servlet codebase that we want to be shared as gracefully as possible by
> multiple deployments.
--
Bill Eldridge
Radio Free Asia
[EMAIL PROTECTED]
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss