Terry Reedy wrote:
Yes, Python's import mechanism assumes that sys.path is relatively static,
or grow only. I not sure what 'reload Module' would do after the first
loop.
it does work using like that :
if sys.modules.has_key("Module"):
reload(Module)
"Chmouel Boudjnah" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> dir = listdir('/path/')
> for i in dir:
> sys.path.append('/path/' + i "/")
> import Module
> doStuff()
> sys.path.remove('/path/' + i "/")
>
> it's obviously not working since it get only the first import Module
>
Hi,
I have some code like that to do kind of plugins load :
dir = listdir('/path/')
for i in dir:
sys.path.append('/path/' + i "/")
import Module
doStuff()
sys.path.remove('/path/' + i "/")
it's obviously not working since it get only the first import Module
while t