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
24aca83d
Commit
24aca83d
authored
Apr 23, 1999
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed typo and font-control problem reported by Detlef Lannert
<lannert@lannert.rz.uni-duesseldorf.de>.
parent
29cf682b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/lib/libsite.tex
Doc/lib/libsite.tex
+2
-2
No files found.
Doc/lib/libsite.tex
View file @
24aca83d
...
@@ -12,14 +12,14 @@ modules that needed to use site-specific modules would place
...
@@ -12,14 +12,14 @@ modules that needed to use site-specific modules would place
\samp
{
import site
}
somewhere near the top of their code. This is no
\samp
{
import site
}
somewhere near the top of their code. This is no
longer necessary.
longer necessary.
This will append site-specific paths to t
o t
he module search path.
This will append site-specific paths to the module search path.
\indexiii
{
module
}{
search
}{
path
}
\indexiii
{
module
}{
search
}{
path
}
It starts by constructing up to four directories from a head and a
It starts by constructing up to four directories from a head and a
tail part. For the head part, it uses
\code
{
sys.prefix
}
and
tail part. For the head part, it uses
\code
{
sys.prefix
}
and
\code
{
sys.exec
_
prefix
}
; empty heads are skipped. For
\code
{
sys.exec
_
prefix
}
; empty heads are skipped. For
the tail part, it uses the empty string (on Macintosh or Windows) or
the tail part, it uses the empty string (on Macintosh or Windows) or
it uses first
\file
{
lib/python
\var
{
version
}
/site-packages
}
and then
it uses first
\file
{
lib/python
{
\var
{
version
}
}
/site-packages
}
and then
\file
{
lib/site-python
}
(on
\UNIX
{}
). For each of the distinct
\file
{
lib/site-python
}
(on
\UNIX
{}
). For each of the distinct
head-tail combinations, it sees if it refers to an existing directory,
head-tail combinations, it sees if it refers to an existing directory,
and if so, adds to
\code
{
sys.path
}
, and also inspected for path
and if so, adds to
\code
{
sys.path
}
, and also inspected for path
...
...
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