problem(s) with import from parent dir: "from ../brave.py import sir_robin"

Tim Williams (gmail) tdwdotnet at gmail.com
Fri Feb 24 08:27:43 EST 2006


On 24 Feb 2006 05:10:37 -0800, per9000 <per9000 at gmail.com> wrote:
>
>
> SHORT VERSION:
>
> I tried three variants of "from ../brave.py import sir_robin", one
> works. I want to use it in a py-file to execute command-line-style and
> that does not work.
>
> Can someone please give me, not a bucket with the desert(s) on top, but
> just the thin chocolate?
>
>
Add the absolute path to a file called python.pth in your c:\python2x
directory
using the format:

C:\my\holy\py_scripts (newline)
for *each* directory and subdirectory

Then simply import the module as normal

>>>from raw2nice_def import raw2nice

HTH :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060224/9b46de0b/attachment.html>


More information about the Python-list mailing list