Load Arbitrary Script as Module?

rgb122 at my-deja.com rgb122 at my-deja.com
Tue May 9 11:46:17 EDT 2000


Is there a way to load a module given a full filepath? Something like:

driver = LoadModule("C:\\Stuff\\sample.py")
driver.someFunction()

Thanks,
Rob


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



More information about the Python-list mailing list