online-judge-tools / oj

Tools for various online judges. Downloading sample cases, generating additional test cases, testing your code, and submitting it.
MIT License
1.03k stars 92 forks source link

Detect multiple versions of oj command #837

Open kmyk opened 4 years ago

kmyk commented 4 years ago

Description

Some users install online-judge-tools package at many places (e.g., ~/.local, /usr/local, venv, pyenv, virtualenv, Anaconda, pipenv, etc.) (this is a mistake of users) and/or install multiple versions of the online-judge-tools package even at one place (a issue of pip command?). This prevents upgrading packages, because some old versions may hide the newest version. We should detect such states and warn users.

Possible implementations and the analysis

Other notes