You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While official Python documentation mentions where py.ini can be loaded from and what you can configure inside, the unix python-launcher does not see to have any support for it, or lacks documentation.
I reached this while trying to configure py on macos to prefer using the latest release of python instead of using the latest pre-release (which obviously does not work with most tools).
I created a py.ini in user home with expected config but it was not loaded. Should I assume that python-launcher already knowns to use XDG standard. (XDG_CONFIG_HOME) and look for confing in ~/.config/py.ini or similar? I tried to run with verbose mode but apparently --list does not even accept that argument.
$ py --list -vv
The `--list` flag must be specified on its own; see `py --help` for details
FAIL: 64
Later I found that export PYLAUNCH_DEBUG=1 added some extra debugging info and I attempted to trick py to default to another version of python using the documented environment variables:
export PY_PYTHON=3.11
export PY_PYTHON3=3.11
While this works, I still think that lack of config file support is a bug, probably the missing -v too.
While official Python documentation mentions where py.ini can be loaded from and what you can configure inside, the unix python-launcher does not see to have any support for it, or lacks documentation.
...
I still think that lack of config file support is a bug, probably the missing -v too.
py.ini files are not supported on purpose (hence why it's not documented at https://python-launcher.app/ or in the man page), so it's not a bug. I personally dislike the INI file format and honestly no one has ever asked for this before. Plus it seemed slightly redundant compared to the environment variables, so I didn't worry about it (Windows has a somewhat special need for this because environment variables are way harder to set there than on Unix).
I'm hoping something like #165 will replace the need of py.ini. But if people want a similar mechanism as py.ini then I encourage them to upvote this feature request.
As for -v, I don't see that supported by the Windows Launcher.
This discussion was converted from issue #270 on January 24, 2023 03:43.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
While official Python documentation mentions where
py.inican be loaded from and what you can configure inside, the unix python-launcher does not see to have any support for it, or lacks documentation.I reached this while trying to configure
pyon macos to prefer using the latest release of python instead of using the latest pre-release (which obviously does not work with most tools).I created a
py.iniin user home with expected config but it was not loaded. Should I assume that python-launcher already knowns to use XDG standard. (XDG_CONFIG_HOME) and look for confing in~/.config/py.inior similar? I tried to run with verbose mode but apparently--listdoes not even accept that argument.Later I found that
export PYLAUNCH_DEBUG=1added some extra debugging info and I attempted to trick py to default to another version of python using the documented environment variables:While this works, I still think that lack of config file support is a bug, probably the missing
-vtoo.All reactions