How to import from filename with dots in it?
Frank Niessink
niessink at serc.nl
Tue Feb 13 05:17:54 EST 2001
Hi all,
I want to import from a file called 'foo-0.1.py'. Is this at all possible?
Maybe using __import__?
Thanks, Frank
--
The Hitch Hiker's Guide to the Galaxy has this to say on the subject of
flying. There is an art, it says, or rather a knack to flying. The knack lies
in learning how to throw yourself at the ground and miss. Pick a nice day, it
suggests, and try it.
-- Douglas Adams, 'Life, the Universe, and Everything'
More information about the Python-list
mailing list