mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-22 12:07:15 +03:00
Add sbin to default paths
This commit is contained in:
parent
a7e9030c12
commit
08fae7a0ac
@ -85,7 +85,7 @@ def find_exe(name: str) -> Optional[str]:
|
||||
from kitty.utils import system_paths_on_macos
|
||||
paths = system_paths_on_macos()
|
||||
else:
|
||||
paths = ['/usr/local/bin', '/opt/bin', '/usr/bin', '/bin']
|
||||
paths = ['/usr/local/bin', '/opt/bin', '/usr/bin', '/bin', '/usr/sbin', '/sbin']
|
||||
path = os.pathsep.join(paths) + os.pathsep + os.defpath
|
||||
ans = shutil.which(name, path=path)
|
||||
return ans
|
||||
|
Loading…
Reference in New Issue
Block a user