-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Doc: Add "the current working directory" to -I
's description
#100526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
In isolated mode :data:`sys.path` contains neither the script's directory nor | ||
the user's site-packages directory. All :envvar:`PYTHON*` environment | ||
In isolated mode, :data:`sys.path` does not contain the current working | ||
directory, the script's directory, or the user's site-packages directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may add something like:
(...): see the :option:`-P option <-P>` for details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is already indicated in L302~L303. Wouldn't this be a duplication?
In summary:
the current working directory, the script's directory
comes from-P
the user's site-packages directory
comes from-s
All :envvar:`PYTHON*` environment
comes from-E
I am also wondering how to make it informative while being concise. 😂
Anyway, the point is, if the script's directory
is mentioned, the current working directory
should also be mentioned. Otherwise, they should all appear in the see ... for details
part.
I'm not sure how to rephrase this documentation. I'm not a documentation expert :-) |
The following commit authors need to sign the Contributor License Agreement: |
Per https://docs.python.org/3/using/cmdline.html#cmdoption-I,
-I
implies-P
, and-P
indicates "Don’t prepend the current working directory" when used with-m
or-c
:The description of
-I
only mentions "the script's directory". "the current working directory" should be mentioned too.