oops
This commit is contained in:
parent
32768e7939
commit
50ce698524
1 changed files with 1 additions and 1 deletions
|
|
@ -634,7 +634,7 @@ def which(name: str, only_system: bool = False) -> Optional[str]:
|
|||
paths = []
|
||||
ep = os.environ.get('PATH')
|
||||
if ep:
|
||||
paths = os.pathsep.split(ep)
|
||||
paths = ep.split(os.pathsep)
|
||||
paths.append(os.path.expanduser('~/.local/bin'))
|
||||
paths.append(os.path.expanduser('~/bin'))
|
||||
ans = shutil.which(name, path=os.pathsep.join(paths))
|
||||
|
|
|
|||
Loading…
Reference in a new issue