mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
Add support for printing the Python executable name in the upgrade message.
# Aider chat conversation:
This commit is contained in:
parent
4b133929c8
commit
fe9bcef676
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
import requests
|
||||
import pkg_resources
|
||||
import aider
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from aider.dump import dump
|
||||
|
||||
|
@ -14,7 +16,8 @@ def check_version():
|
|||
return
|
||||
|
||||
print(f"Running aider version {current_version}, newer version available: {latest_version}")
|
||||
print("To upgrade, run: pip install --upgrade aider-chat")
|
||||
py = Path(sys.executable).name
|
||||
print(f"To upgrade, run: {py} -m pip install --upgrade aider-chat")
|
||||
|
||||
if __name__ == "__main__":
|
||||
check_version()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue