Re: how to import a module from a arbitraty path?

2005-05-26 Thread Maksim Kasimov
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: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/

Re: how to import a module from a arbitraty path?

2005-05-26 Thread Peter Hansen
Simon Brunning wrote: > On 5/26/05, Andy Leszczynski > <[EMAIL PROTECTED]> wrote: > >>I have a program which is going to dynamicly load components from some >>arbitrary defined paths. How to do that? > > > You can locate them with os.walk and fnmatch. Then you can temporarily > add the directory

Re: how to import a module from a arbitraty path?

2005-05-26 Thread Simon Brunning
On 5/26/05, Andy Leszczynski <[EMAIL PROTECTED]> wrote: > I have a program which is going to dynamicly load components from some > arbitrary defined paths. How to do that? You can locate them with os.walk and fnmatch. Then you can temporarily add the directory to sys,path, and import using __impor

how to import a module from a arbitraty path?

2005-05-25 Thread Andy Leszczynski
I have a program which is going to dynamicly load components from some arbitrary defined paths. How to do that? A. -- http://mail.python.org/mailman/listinfo/python-list