From 6f0e659d90a4f23973cea2dc21b63871322f2cd0 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Tue, 7 Feb 2023 18:45:22 -0500 Subject: [PATCH] [F] Add even more paths #84 --- hyfetch/neofetch_util.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hyfetch/neofetch_util.py b/hyfetch/neofetch_util.py index 04ab6a584..3a348a9e2 100644 --- a/hyfetch/neofetch_util.py +++ b/hyfetch/neofetch_util.py @@ -157,8 +157,11 @@ def get_command_path() -> str: # Windows doesn't support symbolic links, but also I can't detect symbolic links... hard-code it here for now. if platform.system() == 'Windows': + pkg = Path(__file__).parent pth = (shutil.which("neowofetch") or if_file(cmd_path) or + if_file(pkg / 'scripts/neowofetch') or + if_file(pkg.parent / 'neofetch') or if_file(Path(cmd_path).parent.parent.parent / 'neofetch')) if not pth: