Issue 33095: Cross-reference isolated mode from relevant locations (original) (raw)
Issue33095
Created on 2018-03-18 05:57 by ncoghlan, last changed 2022-04-11 14:58 by admin. This issue is now closed.
Files | |||
---|---|---|---|
File name | Uploaded | Description | Edit |
33095.patch | xtreak,2018-06-17 05:44 |
Pull Requests | |||
---|---|---|---|
URL | Status | Linked | Edit |
PR 7764 | merged | xtreak,2018-06-17 13:42 | |
PR 16180 | merged | miss-islington,2019-09-16 12:14 | |
PR 16181 | merged | mdk,2019-09-16 12:20 |
Messages (7) | ||
---|---|---|
msg314022 - (view) | Author: Alyssa Coghlan (ncoghlan) * ![]() |
Date: 2018-03-18 05:57 |
In https://bugs.python.org/issue33053#msg313966, jwilk noted that it isn't obvious from https://docs.python.org/3/using/cmdline.html#cmdoption-m how to keep the current directory from being added to `sys.path` when using the -m switch. The answer is to pass the `-I` switch as well (to activate isolated mode), but there's no cross reference to help readers discover that fact. https://docs.python.org/3/using/cmdline.html#id2 is the main documentation for isolated mode, so the steps needed to close this issue are: 1. At least add a reference from the -m switch documentation to the -I switch documentation 2. Review the other parts of the `using` docs that describe how `sys.path` is initialised, and reference the -I switch documentation where relevant | ||
msg319804 - (view) | Author: Karthikeyan Singaravelan (xtreak) * ![]() |
Date: 2018-06-17 05:44 |
There are four parts where I could see sys.path manipulation being mentioned while running scripts : -c option (https://docs.python.org/3/using/cmdline.html#cmdoption-c) -m option (https://docs.python.org/3/using/cmdline.html#cmdoption-m) - (input option) |