ActiveState: PythonWin not using PythonPath for import?

Bill Seitz bseitz at my-deja.com
Mon Dec 4 12:12:56 EST 2000


In article <3A283CDB.8020800 at ActiveState.com>,
  Mark Hammond <MarkH at ActiveState.com> wrote:
> Bill Seitz wrote:
>
> > I made a folder just below the Python root to hold my own code.
> >
> > In PythonWin, I edited PythonPath, adding my folder to the end of
the
> > value.
> >
> > Yet when I use "import aFunction" when "aFunction.py" is within my
> > folder, I get an error. When I move the file up to the Python root
> > folder, it works.
>
> The "root" PYTHONPATH entry is the core PythonPath, and is only used
if
> Python can not locate its core library etc manually.
>
> Add your path to one of the subkeys, or just add your own subkey and
add
> your value there...

Thanks, that worked (once I quit/relaunched PythonWin). Is this (a)
recognized outside PythonWin, and (b) documented?


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list