[issue42483] Way working directory is added to sys.path differs between using -c or -m

2020-11-27 Thread Paolo Lammens
Paolo Lammens added the comment: Hmm I think that’s unrelated; it’s a discussion about whether to add or not the working directory at all. Here the issue is that the way it *is* added differs between -c and -m (which isn’t documented). In both cases it is added (I’m not discussing that) but with

[issue42483] Way working directory is added to sys.path differs between using -c or -m

2020-11-27 Thread STINNER Victor
STINNER Victor added the comment: See https://discuss.python.org/t/python-flag-envvar-not-to-put-current-directory-to-sys-path-but-dont-ignore-pythonpath/4235 discussion. -- nosy: +vstinner ___ Python tracker

[issue42483] Way working directory is added to sys.path differs between using -c or -m

2020-11-27 Thread Paolo Lammens
New submission from Paolo Lammens : Tested on: - Python 3.8.6 for Windows 10 64 bit - Python 3.9.0 for Windows 10 64 bit - Python 3.8.6 for Ubuntu 20.04 - Python 3.9.0 for Ubuntu 20.04 Originally asked here: https://stackoverflow.com/q/65024647/6117426 --