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
54ed2d32
Commit
54ed2d32
authored
Jul 15, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify that the description of sys.path[0] is only valid upon program
start-up.
parent
754140e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Doc/lib/libsys.tex
Doc/lib/libsys.tex
+5
-2
No files found.
Doc/lib/libsys.tex
View file @
54ed2d32
...
...
@@ -282,10 +282,11 @@ else:
\begin{datadesc}
{
path
}
\indexiii
{
module
}{
search
}{
path
}
A list of strings that specifies the search path for modules.
Initialized from the environment variable
\envvar
{
PYTHONPATH
}
,
or
an
Initialized from the environment variable
\envvar
{
PYTHONPATH
}
,
plus
an
installation-dependent default.
The first item of this list,
\code
{
path[0]
}
, is the directory
As initialized upon program startup,
the first item of this list,
\code
{
path[0]
}
, is the directory
containing the script that was used to invoke the Python
interpreter. If the script directory is not available (e.g. if the
interpreter is invoked interactively or if the script is read from
...
...
@@ -293,6 +294,8 @@ else:
Python to search modules in the current directory first. Notice
that the script directory is inserted
\emph
{
before
}
the entries
inserted as a result of
\envvar
{
PYTHONPATH
}
.
A program is free to modify this list for its own purposes.
\end{datadesc}
\begin{datadesc}
{
platform
}
...
...
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