On 2/5/21, Barry Scott <[email protected]> wrote:
>> On 5 Feb 2021, at 11:06, Inada Naoki <[email protected]> wrote:
>
>> python.exe lookup pyvenv.cfg even outside of venv.
>> So we can write utf8mode=1 in pyvenv.cfg even outside of venv.

I don't like extending "pyvenv.cfg" with generic settings. This is a
file to configure a virtual environment in terms of finding the
standard library and packages.

I'd prefer a new configuration file that sets the default values for
-X implementation-specific options. The mechanism for finding this
file can support virtual environments.

> This is the problem that I was thinking about when I proposed using
> a py.ini like solution where the file is looked for in the users config
> folder. I think that is the %LOCALAPPDATA% folder for py.exe.

It is standard practice and recommended to create a directory for the
organization or project and optionally a child directory for each
application, such as "%ProgramData%\Python\Python38-32\python.ini" and
"%LocalAppData%\Python\Python38-32\python.ini".

I would have preferred for the py launcher to read and merge settings
for all existing configuration files in the order of
"%ProgramData%\Python\py.ini" (all installations),
"%__AppDir__%\py.ini" (particular installation), and
"%LocalAppData%\Python\py.ini" (user).
_______________________________________________
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/2W6V2WURBTGEXOE7CH4B73IMMGUNHY3W/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to