How to import a module with spaces in the name

Gregory Piñero gregpinero at gmail.com
Wed Feb 15 16:36:41 EST 2006


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 this and
that I already know that spaces in module filenames should be avoided
at all costs!

Thanks,

--
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)



More information about the Python-list mailing list