Add a warning about this being the last version supporting python 3.8

This commit is contained in:
Ian McEwen
2024-07-07 20:49:38 -07:00
parent 19d7e914bc
commit ec4e521001
2 changed files with 6 additions and 0 deletions

View File

@@ -811,6 +811,9 @@ def onConnected(interface):
f"*** A newer version v{pypi_version} is available!"
' Consider running "pip install --upgrade meshtastic" ***\n'
)
if sys.version_info[0] == 3 and sys.version_info[1] < 9:
print(" *** this version of the CLI is the last that supports python 3.8 ***")
print(" *** please update your python installation ***")
else:
print("Showing info of remote node is not supported.")
print(

View File

@@ -317,6 +317,9 @@ def support_info():
)
else:
print(f" meshtastic: v{the_version}")
if sys.version_info[0] == 3 and sys.version_info[1] < 9:
print(" *** this version of the CLI is the last that supports python 3.8 ***")
print(" *** please update your python installation ***")
print(f" Executable: {sys.argv[0]}")
print(
f" Python: {platform.python_version()} {platform.python_implementation()} {platform.python_compiler()}"