relative import problem

2007-04-27 Thread Alan Isaac
I'm new to relative imports and having a problem. (ValueError: Attempted relative import in non-package) I noticed this: http://www.thescripts.com/forum/thread549516.html Is this behavior intentional? I'm seeing it in Python 2.5.1. Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/

Re: Relative import problem

2007-04-19 Thread Martin
On Apr 19, 6:54 pm, "Jorgen Bodde" <[EMAIL PROTECTED]> wrote: > Hi all, > > I want to structure my app so that I have two dirs like; > > obj/{object files} > > gui/{gui files} > > Here comes the catch. From the GUI dir, I would like to access the obj > submodule path. I need to go one dir back.. I

Re: Relative import problem

2007-04-19 Thread kyosohma
On Apr 19, 11:54 am, "Jorgen Bodde" <[EMAIL PROTECTED]> wrote: > Hi all, > > I want to structure my app so that I have two dirs like; > > obj/{object files} > > gui/{gui files} > > Here comes the catch. From the GUI dir, I would like to access the obj > submodule path. I need to go one dir back.. I

Relative import problem

2007-04-19 Thread Jorgen Bodde
Hi all, I want to structure my app so that I have two dirs like; obj/{object files} gui/{gui files} Here comes the catch. From the GUI dir, I would like to access the obj submodule path. I need to go one dir back.. I read there was something like from .. import x in python 2.5 so that I could a