On Tue, Feb 2, 2021 at 6:31 AM Barry Scott
On 30 Jan 2021, at 12:05, Inada Naoki
wrote: Where would Python look for a "configuration file like `pyvenv.cfg`" ?
I am not a Windows expert so I am not sure. But I think it should be the same directory where `python.exe` is in.
You can put the system default there but each user needs to have a file that they can control to set the per user config.
py.exe uses %LOCALAPPDATA%\py.ini
I'd suggest that you could have a %LOCALAPPDATA%\python.ini.
But what happen if user installed Python from python.org and Python from conda?
User may have two or more Pythons having the same version.
In my idea, if user can not change the config of system installed
Python, user still can create venv and change the setting for the
venv.
--
Inada Naoki