This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients docs@python, jwilk, ncoghlan
Date 2018-03-18.05:57:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In, jwilk noted that it isn't obvious from 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. 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
Date User Action Args
2018-03-18 05:57:16ncoghlansetrecipients: + ncoghlan, jwilk, docs@python
2018-03-18 05:57:16ncoghlansetmessageid: <>
2018-03-18 05:57:16ncoghlanlinkissue33095 messages
2018-03-18 05:57:15ncoghlancreate