theme-scorphish icon indicating copy to clipboard operation
theme-scorphish copied to clipboard

Scorphish displays wrong Python version when using pyenv

Open bjoernpollex opened this issue 6 years ago • 1 comments

When using pyenv with a local Python version configured (using a .python-version file), Scorphish will display the wrong Python version, because it uses a cashed value, and no virtual environment is active. A simple way to fix it is to simply compute the Python version every time, without caching, but I'm not sure if the performance hit is generally acceptable (it works for me).

bjoernpollex avatar Nov 20 '18 09:11 bjoernpollex

Thanks for reporting. There may be a flag to turn caching of. But I personally prefer a fast prompt – hence the caching. So I'll think of all possible ways do invalidate the cache in this situation.

scorphus avatar Jan 01 '19 22:01 scorphus