Re: Import python modules from sub-directories

2010-08-06 Thread Navkirat Singh
On 06-Aug-2010, at 1:13 PM, 夏震 wrote: > > >> Hi guys, >> >> I am new to python and would like to import certain classes in >> sub-directories of the >> working directory. I was wondering how will I be able to achieve this? >> >> Regards, >> Nav >> -- >> http://mail.python.org/mailman/listinf

Re: Import python modules from sub-directories

2010-08-06 Thread 夏震
> Hi guys, > > I am new to python and would like to import certain classes in > sub-directories of the > working directory. I was wondering how will I be able to achieve this? > > Regards, > Nav > -- > http://mail.python.org/mailman/listinfo/python-list > Please try "touch __init__.py" in sub-

Re: Import python modules from sub-directories

2010-08-05 Thread Ralf Schoenian
Navkirat Singh wrote: Hi guys, I am new to python and would like to import certain classes in sub-directories of the working directory. I was wondering how will I be able to achieve this? Regards, Nav Hi, put an empty file with the name __init__.py in your subdirectory. I call it sub1 here

Re: Import python modules from sub-directories

2010-08-05 Thread Navkirat Singh
On 06-Aug-2010, at 10:44 AM, Navkirat Singh wrote: > Hi guys, > > I am new to python and would like to import certain classes in > sub-directories of the working directory. I was wondering how will I be able > to achieve this? > > Regards, > Nav Thanks. I got it. I just put an empty __init_

Import python modules from sub-directories

2010-08-05 Thread Navkirat Singh
Hi guys, I am new to python and would like to import certain classes in sub-directories of the working directory. I was wondering how will I be able to achieve this? Regards, Nav -- http://mail.python.org/mailman/listinfo/python-list