Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #4897
| From | dmitrey <dmitrey15@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Python3: imports don't see files from same directory? |
| Date | 2011-05-07 03:02 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <ce234ef9-34c1-4fbc-a064-52dce1cef240@p23g2000vbl.googlegroups.com> (permalink) |
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/961a90219a61e19d# any ideas what's the reason and how to fix it? I have tried to search google but got nothing yet. Thank you in advance, D.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar
Python3: imports don't see files from same directory? dmitrey <dmitrey15@gmail.com> - 2011-05-07 03:02 -0700 Re: Python3: imports don't see files from same directory? Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-07 09:07 -0600 Re: Python3: imports don't see files from same directory? "John O'Hagan" <research@johnohagan.com> - 2011-05-08 06:04 +0000 Re: Python3: imports don't see files from same directory? Benjamin Kaplan <benjamin.kaplan@case.edu> - 2011-05-07 23:24 -0700
csiph-web