Load Arbitrary Script as Module?

rgb122 at my-deja.com rgb122 at my-deja.com
Tue May 9 19:52:59 CEST 2000

> driver = __import__("C:\\Stuff\\sample")

Thanks. What are the rules regarding case-sensitivity on an NT
filesystem? I tried:

m = __import__("Z:\\Desktop\\pyTemplate\\Tags\\Script")

But get an error: "NameError: Case mismatch for module name
Z:\Desktop\pyTemplate\Tags\Script" As far as I can tell, that's the
exact case, at least according to the command prompt.


Sent via Deja.com http://www.deja.com/
Before you buy.

More information about the Python-list mailing list