[issue31210] Can not import modules if sys.prefix contains DELIM

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: I consider that the current behavior is correct. They are other ways to put a path which contains ":" into sys.path. I close the issue. -- nosy: +vstinner resolution: -> not a bug stage: -> resolved status: open -> closed

[issue31210] Can not import modules if sys.prefix contains DELIM

2017-08-17 Thread Nick Coghlan
Nick Coghlan added the comment: If you have access to modify PYTHONPATH at all, you can already shadow almost all standard library modules: $ PYTHONPATH=/MY_CHOSEN_DIRECTORY python3 -m site sys.path = [ '/home/ncoghlan', '/MY_CHOSEN_DIRECTORY', '/usr/lib64/python36.zip',

[issue31210] Can not import modules if sys.prefix contains DELIM

2017-08-16 Thread Cédric Krier
Cédric Krier added the comment: I'm wondering if it could have security implications and be used to fool user by changing the PYTHONPATH. -- ___ Python tracker

[issue31210] Can not import modules if sys.prefix contains DELIM

2017-08-16 Thread Eryk Sun
Eryk Sun added the comment: It's simple to work around using a junction or symbolic link, so is this worth pursuing? -- ___ Python tracker ___

[issue31210] Can not import modules if sys.prefix contains DELIM

2017-08-16 Thread R. David Murray
Changes by R. David Murray : -- title: Can not import site from sys.prefix containing DELIM -> Can not import modules if sys.prefix contains DELIM ___ Python tracker