Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #28809 > unrolled thread

Re: how to run python2.6 module with absolute imports stand alone

Started byJean-Michel Pichavant <jeanmichel@sequans.com>
First post2012-09-10 11:28 +0200
Last post2012-09-10 11:28 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: how to run python2.6 module with absolute imports stand alone Jean-Michel Pichavant <jeanmichel@sequans.com> - 2012-09-10 11:28 +0200

#28809 — Re: how to run python2.6 module with absolute imports stand alone

FromJean-Michel Pichavant <jeanmichel@sequans.com>
Date2012-09-10 11:28 +0200
SubjectRe: how to run python2.6 module with absolute imports stand alone
Message-ID<mailman.439.1347269313.27098.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web