Simple question: how to tell IDLE where to look for a module?
Gerrit Muller
gerrit.muller at philips.com
Thu Aug 8 02:23:14 EDT 2002
"Martin v. Loewis" wrote:
>
> Azratax <azrataxnospam at aznt.com> writes:
>
> > Using the windows version of python, how do i tell it where to look for a
> > module?
>
> The easiest way is to set the PYTHONPATH environment variable, to
> include the directory that has your source code.
>
> If you already run IDLE, you can also append to sys.path.
>
> HTH,
> Martin
or add a .pth file to the main Python directory, with the desired path
as text in the file.
--
--------------------------------------------------------------------
Gerrit Muller Philips Research Laboratories Eindhoven
Building: WDC 2 - 007 Prof. Holstlaan 4
Phone: +31 40 27 45242 5656 AA Eindhoven
Fax: +31 40 27 45033 The Netherlands
mailto:gerrit.muller at philips.com
http://www.extra.research.philips.com/natlab/sysarch/index.html
More information about the Python-list
mailing list