> On 2 Feb 2021, at 00:22, Inada Naoki <[email protected]> wrote: > > On Tue, Feb 2, 2021 at 6:31 AM Barry Scott <[email protected] > <mailto:[email protected]>> wrote: >> >>> On 30 Jan 2021, at 12:05, Inada Naoki <[email protected]> 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 <http://python.org/> > and Python from conda? > User may have two or more Pythons having the same version.
Apple showed the way by using reversed FQD's. Python.org <http://python.org/> would use org.python.python.ini Conda.io <http://conda.io/> would use io.conda.python.ini barry-emacs.org <http://barry-emacs.org/>'s python would use org.barrys-emacs.python.python.ini Further we would need to support multiple versions of python from the same org installed side-by-side. Structure the .ini so that it has default settings and version specific settings. --- [default] utf8_mode = true [3.8-64] utf8-mode = false --- > > 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. That fine for the venv users but does not help the people that do not need/want to use venv. Barry > > -- > Inada Naoki <[email protected] <mailto:[email protected]>>
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/UWFIHR5AOIO56RTJMLBBKUXW2FNJ67KR/ Code of Conduct: http://python.org/psf/codeofconduct/
