mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
Use __xonsh_env__.detype() and fix typos
This commit is contained in:
parent
9758ac8589
commit
a5ef406174
1 changed files with 3 additions and 3 deletions
|
@ -411,10 +411,10 @@ def which(args, stdin=None, stdout=None, stderr=None):
|
|||
# which.whichgen gives the nicest 'verbose' output if PATH is taken
|
||||
# from os.environ so we temporarily override it with
|
||||
# __xosnh_env__['PATH']
|
||||
original_os_path = os.envrion['PATH']
|
||||
os.environ['PATH'] = builtins.__xonsh_env__['PATH']
|
||||
original_os_path = os.environ['PATH']
|
||||
os.environ['PATH'] = builtins.__xonsh_env__.detype()['PATH']
|
||||
matches = _which.whichgen(arg, exts=exts, verbose=pargs.verbose)
|
||||
os.envrion['PATH'] = original_os_path
|
||||
os.environ['PATH'] = original_os_path
|
||||
for abs_name, from_where in matches:
|
||||
if ON_WINDOWS:
|
||||
# Use list dir to get correct case for the filename
|
||||
|
|
Loading…
Add table
Reference in a new issue