ActiveState: PythonWin not using PythonPath for import?

red5sf at my-deja.com red5sf at my-deja.com
Sat Dec 9 18:43:18 EST 2000


If you edit the Pythonwin path, that should solve your problem.

Christian

In article <90gjah$7bh$1 at nnrp1.deja.com>,
  Bill Seitz <bseitz at my-deja.com> wrote:
> 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.
>


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



More information about the Python-list mailing list