how to import a module from a arbitraty path?

Maksim Kasimov kasimov at i.com.ua
Thu May 26 09:25:14 EDT 2005


Andy Leszczynski wrote:
> I have a program which is going to dynamicly load components from some 
> arbitrary defined paths. How to do that?
> 
> A.
import sys
sys.path.append('/yourpath/libs')


-- 
Best regards,
Maksim Kasimov
mailto: kasimov at i.com.ua



More information about the Python-list mailing list