Re: Python3: imports don't see files from same directory?

2011-05-07 Thread Benjamin Kaplan
On Sat, May 7, 2011 at 11:04 PM, John O'Hagan wrote: > On Sat, 7 May 2011, Ian Kelly wrote: > [...] >> >> Implicit relative imports were removed in Python 3 to prevent >> ambiguity as the number of packages grows.  See PEP 328. >> >> If you have two modules in the same package, pack1.mod1 and >> p

Re: Python3: imports don't see files from same directory?

2011-05-07 Thread John O'Hagan
On Sat, 7 May 2011, Ian Kelly wrote: [...] > > Implicit relative imports were removed in Python 3 to prevent > ambiguity as the number of packages grows. See PEP 328. > > If you have two modules in the same package, pack1.mod1 and > pack1.mod2, then in pack1.mod1 you can no longer just do "impor

Re: Python3: imports don't see files from same directory?

2011-05-07 Thread Ian Kelly
On Sat, May 7, 2011 at 4:02 AM, dmitrey wrote: > hi all, > I try to port my code to Python 3 and somehow files don't see files > from same directory, so I have to add those directories explicitly, > e.g. > import sys > sys.path += [...] > > Also, it leads to bugs like this one: > http://groups.goo

Python3: imports don't see files from same directory?

2011-05-07 Thread dmitrey
hi all, I try to port my code to Python 3 and somehow files don't see files from same directory, so I have to add those directories explicitly, e.g. import sys sys.path += [...] Also, it leads to bugs like this one: http://groups.google.com/group/comp.lang.python/browse_thread/thread/961a90219a61e