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
ae2d657d
Commit
ae2d657d
authored
Mar 08, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some logical markup.
parent
55cbbfed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
Doc/lib/libsite.tex
Doc/lib/libsite.tex
+5
-5
Doc/libsite.tex
Doc/libsite.tex
+5
-5
No files found.
Doc/lib/libsite.tex
View file @
ae2d657d
...
...
@@ -15,8 +15,8 @@ This will append site-specific paths to to the module search path.
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
\code
{
sys.exec
_
prefix
}
; empty heads are skipped. For
the tail part, it uses the empty string (on Mac
or Windows) or it uses
first
\file
{
lib/python
\var
{
version
}
/site-packages
}
and then
the tail part, it uses the empty string (on Mac
intosh or Windows) or
it uses
first
\file
{
lib/python
\var
{
version
}
/site-packages
}
and then
\file
{
lib/site-python
}
(on
\UNIX
{}
). For each of the distinct
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
...
...
@@ -73,11 +73,11 @@ Note that \file{bletch} is omitted because it doesn't exist; the
configuration file.
After these path manipulations, an attempt is made to import a module
named
\
cod
e
{
sitecustomize
}
\refmodindex
{
sitecustomize
}
, which can
named
\
modul
e
{
sitecustomize
}
\refmodindex
{
sitecustomize
}
, which can
perform arbitrary site-specific customizations. If this import fails
with an
\
code
{
ImportError
}
exception, it is silently ignored.
with an
\
exception
{
ImportError
}
exception, it is silently ignored.
Note that for some non-
\UNIX
{}
systems,
\code
{
sys.prefix
}
and
\code
{
sys.exec
_
prefix
}
are empty, and the path manipulations are
skipped; however the import of
\
cod
e
{
sitecustomize
}
\refmodindex
{
sitecustomize
}
is still attempted.
\
modul
e
{
sitecustomize
}
\refmodindex
{
sitecustomize
}
is still attempted.
Doc/libsite.tex
View file @
ae2d657d
...
...
@@ -15,8 +15,8 @@ This will append site-specific paths to to the module search path.
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
\code
{
sys.exec
_
prefix
}
; empty heads are skipped. For
the tail part, it uses the empty string (on Mac
or Windows) or it uses
first
\file
{
lib/python
\var
{
version
}
/site-packages
}
and then
the tail part, it uses the empty string (on Mac
intosh or Windows) or
it uses
first
\file
{
lib/python
\var
{
version
}
/site-packages
}
and then
\file
{
lib/site-python
}
(on
\UNIX
{}
). For each of the distinct
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
...
...
@@ -73,11 +73,11 @@ Note that \file{bletch} is omitted because it doesn't exist; the
configuration file.
After these path manipulations, an attempt is made to import a module
named
\
cod
e
{
sitecustomize
}
\refmodindex
{
sitecustomize
}
, which can
named
\
modul
e
{
sitecustomize
}
\refmodindex
{
sitecustomize
}
, which can
perform arbitrary site-specific customizations. If this import fails
with an
\
code
{
ImportError
}
exception, it is silently ignored.
with an
\
exception
{
ImportError
}
exception, it is silently ignored.
Note that for some non-
\UNIX
{}
systems,
\code
{
sys.prefix
}
and
\code
{
sys.exec
_
prefix
}
are empty, and the path manipulations are
skipped; however the import of
\
cod
e
{
sitecustomize
}
\refmodindex
{
sitecustomize
}
is still attempted.
\
modul
e
{
sitecustomize
}
\refmodindex
{
sitecustomize
}
is still attempted.
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