dynamic import

paolo veronelli paolo_veronelli at yahoo.it
Fri Jul 23 08:33:51 EDT 2004


On Fri, 23 Jul 2004 13:56:42 +0200, <bry at itnisk.com> wrote:

> Hi,
> I'm trying to do a dynamic import of a file that has no problems with 
> it, that
> is to say I can import it normally, my sys.path is set to the right 
> folder etc.
> but my dynamic import code is not working, this is the problem code:
>
> try:
>     import f[0]
> except:
>     print "not importable"

import file.py can be the error (want no .py)?



-- 
....lotta dura  per la verdura




More information about the Python-list mailing list