Import python modules from sub-directories

Navkirat Singh navkirats at gmail.com
Fri Aug 6 15:15:42 CEST 2010


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/listinfo/python-list
> 
>> 
> 
> Please try "touch __init__.py" in sub-directories.
> 
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list

Thanks, that worked : )


More information about the Python-list mailing list