RE: saving local dir

From: Tim Golden (tim.golden_at_viacom-outdoor.co.uk)
Date: 10/29/04


To: python-list@python.org
Date: Fri, 29 Oct 2004 13:26:09 +0100


[Bengt dePaulis]
| I just started on python.
|
| I have c:\python23\examples\py
| and want to include that in my sys.path
|
| How to do it permanently?
|
| /Bengt
| Helsinki

You want to look at the PYTHONPATH environment variable

(If you know how to set this, skip the next bit)

You'll need to go to your computer's properties, select
[Advanced] (!) and then [Environment Variables], select
[New] and type in a name of PYTHONPATH and a value of
c:\python23\examples\py. [OK] all the way back out to
reality.

(end of explanation)

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________



Relevant Pages

  • Re: PYTHONPATH in Windows
    ... We need to set up PYTHONPATH so ... just be done through the environment variables? ... "On Windows, the setup is a bit more involved, largely because ... python install directory, you'll need to tell it how to find your ...
    (comp.lang.python)
  • Re: How to run Python in Windows w/o popping a DOS box?
    ... : program read from stdin arg ...: arguments passed to program in sys.argv ... PYTHONSTARTUP: file executed on interactive startup PYTHONPATH: ';'-separated list of directories prefixed to the default module search path. ...
    (comp.lang.python)
  • PYTHONPATH in Windows
    ... PYTHONPATH is a concept I've never been able to get straight. ... just be done through the environment variables? ... "On Windows, the setup is a bit more involved, largely because ... is stored in the Windows registry. ...
    (comp.lang.python)
  • Re: How to set pythonpath in Mac OS X?
    ... You can define the environment variable PYTHONPATH to include any paths ... On MacOS X you have several choices for defining environment variables. ... All work for unix command-line apps, but only can be seen by GUI apps, ... .cshrc may not be the best choice, ...
    (comp.lang.python)
  • Re: PYTHONPATH
    ... This does not sets the PYTHONPATH. ... Other environment variables: ... distros, it will be something like adding the line: ...
    (comp.lang.python)