Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1a54d715
Commit
1a54d715
authored
Nov 25, 2002
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mention that .pth files can't be used to override standard modules
(suggested by Jack Jansen)
parent
2095c06c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
Doc/inst/inst.tex
Doc/inst/inst.tex
+8
-4
No files found.
Doc/inst/inst.tex
View file @
1a54d715
...
...
@@ -728,10 +728,14 @@ The most convenient way is to add a path configuration file to a
directory that's already on Python's path, usually to the
\file
{
...
/
site
-
packages
/
}
directory. Path configuration files have an
extension of
\file
{
.pth
}
, and each line must contain a single path
that will be added to
\code
{
sys.path
}
. Paths can be absolute or
relative, in which case they're relative to the directory containing
the
\file
{
.pth
}
file. Any directories added to the search path will
be scanned in turn for
\file
{
.pth
}
files. See
that will be appended to
\code
{
sys.path
}
.
(
Because the new paths are
appended to
\code
{
sys.path
}
, modules in the added directories will not
override standard modules. This means you can't use this mechanism
for installing fixed versions of standard modules.
)
Paths can be absolute or relative, in which case they're relative to
the directory containing the
\file
{
.pth
}
file. Any directories added
to the search path will be scanned in turn for
\file
{
.pth
}
files. See
\citetitle
[
http:
//
www.python.org
/
dev
/
doc
/
devel
/
lib
/
module
-
site.html
]
{
the
documentation for the
\module
{
site
}
module
}
for more information.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment