cannot create python packages

Rafael Sachetto rsachetto at gmail.com
Wed Oct 10 09:12:47 EDT 2007


Try to put a empty file named __init__.py on current_dir/level1/On 10/10/07,
Konstantinos Pachopoulos <kostaspaxos at yahoo.gr> wrote:
>
> Hi,
> i have the following files:
> current_dir/level1/Called.py
> current_dir/Caller.py
>
>
> Called.py:
> -----------
> class Called:
>    def exec1(self):
>      print "Hello"
>
>
> Caller.py:
> ----------
> from level1.Called import *
>
> c=Called()
> c.exec1()
>
> However it is impossible for Caller.py to find
> Called.py. I even tried to place the level1 structure
> inside /usr/lib/pythonX.Y/, whithout success however.
> Any ideas?
>
> Thnx
>
>
>       ___________________________________________________________
> Want ideas for reducing your carbon footprint? Visit Yahoo! For Good
> http://uk.promotions.yahoo.com/forgood/environment.html
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Rafael Sachetto Oliveira

Sir - Simple Image Resizer
http://rsachetto.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20071010/ee7f704a/attachment.html>


More information about the Python-list mailing list