sephii / taxi

Taxi is a CLI to time tracking backends
https://taxi-timesheets.readthedocs.io/
Do What The F*ck You Want To Public License
41 stars 15 forks source link

Fix virtualenv detection in `plugin` command #144

Closed sephii closed 2 years ago

sephii commented 2 years ago

The plugin install command always errors with

Error: You're not supposed to use the plugin commands with a system-wide
install of Taxi. Please install the specific packages for your operating
system instead.

Even when run from inside a virtualenv. The correct way do to the check seems to be comparing sys.real_prefix with sys.base_prefix.