Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #104391

Python path

From "ast" <nomail@invalid.com>
Newsgroups comp.lang.python
Subject Python path
Date 2016-03-09 08:29 +0100
Message-ID <56dfd0ee$0$22758$426a34cc@news.free.fr> (permalink)
Organization Guest of ProXad - France

Show all headers | View raw


Hello

Python path may be read with:

>>> import sys
>>> sys.path

There is an environnement variable $PYTHONPATH (windows)
to set if you want to add some additionnal directories to the
path.

But the default path seems not to be stored in any environnement
variable. Is it correct ? Is it stored somewhere else ?

I have heard about *.pth files to store some directories to be added 
to path but I didn't found any such files on my system.

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Python path "ast" <nomail@invalid.com> - 2016-03-09 08:29 +0100
  Re: Python path Steven D'Aprano <steve@pearwood.info> - 2016-03-09 23:55 +1100

csiph-web