Thanks i middle resolve the problem, and i going to read the PEP-366 i've been read the 328, i will kept informed of the progresses.<br><br>Thanks again for the help <img goomoji="gtalk.330" style="margin: 0pt 0.2ex; vertical-align: middle;" src="cid:gtalk.330@goomoji.gmail"><br>
<br><div class="gmail_quote">On Thu, Feb 4, 2010 at 6:47 PM, Ben Finney <span dir="ltr"><<a href="mailto:ben%2Bpython@benfinney.id.au">ben+python@benfinney.id.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">"Gabriel Genellina" <<a href="mailto:gagsl-py2@yahoo.com.ar">gagsl-py2@yahoo.com.ar</a>> writes:<br>
<br>
> If you directly run a script from inside a package, Python does not<br>
> know that it belongs to a package, and treats it as a simple, lonely<br>
> script. In that case, relative imports won't work.<br>
<br>
</div>Which I consider to be a bug. Fortunately, it's already addressed in PEP<br>
366 <URL:<a href="http://www.python.org/dev/peps/pep-0366/" target="_blank">http://www.python.org/dev/peps/pep-0366/</a>>. Unfortunately, it<br>
involves more hackish boilerplate at the top of the program, and is only<br>
available in Python 2.6+.<br>
<br>
--<br>
 \              “Ignorance more frequently begets confidence than does |<br>
  `\           knowledge.” —Charles Darwin, _The Descent of Man_, 1871 |<br>
_o__)                                                                  |<br>
<font color="#888888">Ben Finney<br>
</font><div><div></div><div class="h5">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Hidura<br>