Re: How to import a module with spaces in the name

2006-02-15 Thread Gregory Piñero
Thanks, that did work! On 2/15/06, Farshid Lashkari <[EMAIL PROTECTED]> wrote: > Gregory Piñero wrote: > > Let's say I have a module named "Excellent Module.py" > > ExcellentModule = __import__('Excellent Module') > > -Farshid > -- > http://mail.python.org/mailman/listinfo/python-list > -- Greg

Re: How to import a module with spaces in the name

2006-02-15 Thread Farshid Lashkari
Gregory Piñero wrote: > Let's say I have a module named "Excellent Module.py" ExcellentModule = __import__('Excellent Module') -Farshid -- http://mail.python.org/mailman/listinfo/python-list

How to import a module with spaces in the name

2006-02-15 Thread Gregory Piñero
Let's say I have a module named "Excellent Module.py" How would I import that into a script? I'm guessing it will involve the imp module somehow (http://www.python.org/doc/2.4.2/lib/module-imp.html) but I didn't figure it out. And let's go ahead and pretend I have a good reason for doing t