Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #28809
| Date | 2012-09-10 11:28 +0200 |
|---|---|
| From | Jean-Michel Pichavant <jeanmichel@sequans.com> |
| Subject | Re: how to run python2.6 module with absolute imports stand alone |
| References | <k2dr1c$5i5$1@ger.gmane.org> <k2e2fs$rng$1@ger.gmane.org> <k2gtec$s59$1@ger.gmane.org> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.439.1347269313.27098.python-list@python.org> (permalink) |
Gelonida N wrote: > On 09/08/2012 02:13 AM, Mark Lawrence wrote: >> [snip] >>> >> >> I hope this helps >> http://stackoverflow.com/questions/3616952/how-to-properly-use-relative-or-absolute-imports-in-python-modules >> > > It seems the safest bet seems to be to not use relative imports. That's what I figured as well. I may have been misusing relative imports, but I never found the solution for my problems. Absolute imports just solved everything. I think this is the way to go for anyone who does not want to spend too much brain on their import directives. JM
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: how to run python2.6 module with absolute imports stand alone Jean-Michel Pichavant <jeanmichel@sequans.com> - 2012-09-10 11:28 +0200
csiph-web