[O] Better warning message #419
This commit is contained in:
parent
1fa29cf831
commit
f64ee7b7e9
2 changed files with 5 additions and 2 deletions
|
|
@ -382,7 +382,7 @@ def run():
|
|||
GLOBAL_CFG.use_overlay = args.overlay
|
||||
|
||||
if args.version:
|
||||
print(f'Version is {VERSION}')
|
||||
print(f'Version is 1.99.∞\n(python hyfetch legacy mode)')
|
||||
return
|
||||
|
||||
# Ensure git bash for windows
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import os
|
||||
import platform
|
||||
import subprocess
|
||||
import sys
|
||||
|
|
@ -12,7 +13,9 @@ def run_rust():
|
|||
pd = Path(__file__).parent.joinpath('rust')
|
||||
pd = pd.joinpath('hyfetch.exe' if platform.system() == 'Windows' else 'hyfetch')
|
||||
if not pd.exists():
|
||||
printc('&cThe rust executable is not found, falling back to python...')
|
||||
if 'HYFETCH_DONT_WARN_RUST' not in os.environ:
|
||||
printc('&cThe executable for hyfetch v2 (rust) is not found, falling back to legacy v1.99.∞ (python).\n'
|
||||
'You can add environment variable HYFETCH_DONT_WARN_RUST=1 to suppress this warning.\n')
|
||||
run_py()
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue