Alan Isaac <[EMAIL PROTECTED]> wrote: > "Alex Martelli" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I don't know of any "pretty" way -- I'd do it by path manipulation > > (finding mypackage from os.path.abspath(__file__) and inserting its > > _parent_ directory in sys.path). > > > Yes, that seems to be the standard solution. > I find it ugly. Anyway, I suppose my question remains: > why are we constrained from solving this with > a relative import? (And I suppose your answer will be: > well then, relative to *what*? I am having trouble > seeing why that answer cannot be given a clear riposte.)
So what do you think the answer should be? Alex -- http://mail.python.org/mailman/listinfo/python-list