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
> 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-
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
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_
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