[F] Add even more paths #84

This commit is contained in:
Azalea Gui 2023-02-07 18:45:22 -05:00
parent 089f669e6a
commit 6f0e659d90
No known key found for this signature in database
GPG key ID: E289FAC0DA92DD2B

View file

@ -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. # Windows doesn't support symbolic links, but also I can't detect symbolic links... hard-code it here for now.
if platform.system() == 'Windows': if platform.system() == 'Windows':
pkg = Path(__file__).parent
pth = (shutil.which("neowofetch") or pth = (shutil.which("neowofetch") or
if_file(cmd_path) 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_file(Path(cmd_path).parent.parent.parent / 'neofetch'))
if not pth: if not pth: