Re: Relative Package Import

2008-07-10 Thread Thomas
Peter Otten wrote: Thomas wrote: Robert Hancock wrote: mypackage/ __init__.py push/ __init__.py dest.py feed/ __init__py subject.py In subject.py I have from ..push import dest T

Re: Relative Package Import

2008-07-09 Thread Peter Otten
Kay Schluehr wrote: > On 8 Jul., 21:09, Peter Otten <[EMAIL PROTECTED]> wrote: >> Robert Hancock wrote: >> > mypackage/ >> > __init__.py >> > push/ >> > __init__.py >> > dest.py >> > feed/ >> >__init__py >> >

Re: Relative Package Import

2008-07-09 Thread Kay Schluehr
On 8 Jul., 21:09, Peter Otten <[EMAIL PROTECTED]> wrote: > Robert Hancock wrote: > > mypackage/ > > __init__.py > > push/ > > __init__.py > > dest.py > > feed/ > >__init__py > > subject.py

Re: Relative Package Import

2008-07-09 Thread Peter Otten
Thomas wrote: > Robert Hancock wrote: >> mypackage/ >> __init__.py >> push/ >> __init__.py >> dest.py >> feed/ >>__init__py >> subject.py >> >> In subject.py I have >> from ..push im

Re: Relative Package Import

2008-07-09 Thread Thomas
Robert Hancock wrote: mypackage/ __init__.py push/ __init__.py dest.py feed/ __init__py subject.py In subject.py I have from ..push import dest There is no such thing as relative p

Re: Relative Package Import

2008-07-08 Thread Peter Otten
Robert Hancock wrote: > mypackage/ > __init__.py > push/ > __init__.py > dest.py > feed/ >__init__py > subject.py > > In subject.py I have > from ..push import dest > > But i receiv

Re: Relative Package Import

2008-07-08 Thread Remy Blank
Robert Hancock wrote: mypackage/ __init__.py push/ __init__.py dest.py feed/ __init__py ^ Missing dot here? ---| In subject.py I have from ..push import dest But

Relative Package Import

2008-07-08 Thread Robert Hancock
mypackage/ __init__.py push/ __init__.py dest.py feed/ __init__py subject.py In subject.py I have from ..push import dest But i receive the error: Caught exception importing module