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

2011-05-08 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 import

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

2011-05-08 Thread Benjamin Kaplan
On Sat, May 7, 2011 at 11:04 PM, John O'Hagan resea...@johnohagan.com 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,

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:

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 dmitre...@gmail.com 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: