From 673de9bb5337f5dd676f730537f1c19deed36697 Mon Sep 17 00:00:00 2001 From: eval Nya <60149113+nexplorer-3e@users.noreply.github.com> Date: Tue, 11 Jul 2023 14:21:36 +0800 Subject: [PATCH] run_qwqfetch: rename & change entry point --- hyfetch/neofetch_util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hyfetch/neofetch_util.py b/hyfetch/neofetch_util.py index 0dd4e26f..98fc6c4d 100644 --- a/hyfetch/neofetch_util.py +++ b/hyfetch/neofetch_util.py @@ -349,7 +349,7 @@ def run(asc: str, backend: BackendLiteral, args: str = ''): return run_qwqfetch(asc, args) -def run_neofetch(asc: str, args: str = ''): +def run_qwqfetch(asc: str, args: str = ''): """ Run neofetch with colors @@ -360,10 +360,10 @@ def run_neofetch(asc: str, args: str = ''): # call qwqfetch to print string try: - from qwqfetch import src + import qwqfetch # distro_detector only return a bash variable # so we use qwqfetch builtin distro detector - print(src.get_result(asc)) + print(qwqfetch.get_ascres(asc)) except ImportError as e: # module not found etc print("qwqfetch is not installed. Install it by executing:") # use print to output hint directly print("pip install git+https://github.com/nexplorer-3e/qwqfetch") # TODO: public repo