Re: cannot create python packages

2007-10-10 Thread mauro
On 10 Ott, 15:01, Konstantinos Pachopoulos <[EMAIL PROTECTED]> 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 i

Re: cannot create python packages

2007-10-10 Thread Rafael Sachetto
Try to put a empty file named __init__.py on current_dir/level1/On 10/10/07, Konstantinos Pachopoulos <[EMAIL PROTECTED]> wrote: > > Hi, > i have the following files: > current_dir/level1/Called.py > current_dir/Caller.py > > > Called.py: > --- > class Called: >def exec1(self): > p

cannot create python packages

2007-10-10 Thread Konstantinos Pachopoulos
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