I have a question about the Python launcher;
  c:\Windows\py.exe and the py.ini file.

I have both Python 3.6 (32-bit) and Python 3.8 (64-bit)
installed. And I have a 'c:\Users\Gisle\AppData\Local\py.ini'
with this only:
  [defaults]
  python=3.6

A copy of this is also in 'c:\Windows\py.ini'.
So when I do a:
  py -3 -c "import sys; print(sys.version)"

I would assume a "3.6..." would be printed.
But no, py.exe chooses to run my newest Python 3.8:
  3.8.9 (default, Apr 13 2021, 15:54:59)  [GCC 10.2.0 64 bit (AMD64)]

Only when I do 'py -3.6 -c ...', I get what I'd expect.

So is a 'py.ini' and the '[defaults]' simply ignored
or is my syntax wrong?

--
--gv
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to