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 steve.dower
Recipients paul.moore, steve.dower, tim.golden, zach.ware
Date 2016-09-13.21:11:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473801082.85.0.435937363317.issue28138@psf.upfronthosting.co.za>
In-reply-to
Content
Windows's _sys.path file (being renamed from sys.path in b1) currently disable the initial "import site; site.main()" call. However, there are legitimate cases where you may want to opt-in to this while still controlling the search paths.

We should support "import site" as a line in this file that indicates that Py_NoSite should *not* be set. We deliberately do not want arbitrary code execution from this file - there's a reason it's '.path' and not '.pth'

(While I or someone else is here, we should also handle blank lines and lines starting with '#' specially, so that files can be formatted more nicely.)
History
Date User Action Args
2016-09-13 21:11:22steve.dowersetrecipients: + steve.dower, paul.moore, tim.golden, zach.ware
2016-09-13 21:11:22steve.dowersetmessageid: <1473801082.85.0.435937363317.issue28138@psf.upfronthosting.co.za>
2016-09-13 21:11:22steve.dowerlinkissue28138 messages
2016-09-13 21:11:22steve.dowercreate