Skip to content

Commit

Permalink
[F] Add even more paths #84
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Feb 7, 2023
1 parent 089f669 commit 6f0e659
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hyfetch/neofetch_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6f0e659

Please sign in to comment.