Import python modules from sub-directories

Navkirat Singh navkirats at gmail.com
Fri Aug 6 01:41:51 EDT 2010


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__.py file in the subdirectories and it worked.





More information about the Python-list mailing list