mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 18:51:41 +02:00
Fix name collision
This commit is contained in:
@@ -338,10 +338,10 @@ def launch(
|
|||||||
final_cmd.append(x)
|
final_cmd.append(x)
|
||||||
exe = find_exe(final_cmd[0])
|
exe = find_exe(final_cmd[0])
|
||||||
if not exe:
|
if not exe:
|
||||||
env = read_shell_environment(get_options())
|
xenv = read_shell_environment(get_options())
|
||||||
if 'PATH' in env:
|
if 'PATH' in xenv:
|
||||||
import shutil
|
import shutil
|
||||||
exe = shutil.which(final_cmd[0], path=env['PATH'])
|
exe = shutil.which(final_cmd[0], path=xenv['PATH'])
|
||||||
if exe:
|
if exe:
|
||||||
final_cmd[0] = exe
|
final_cmd[0] = exe
|
||||||
kw['cmd'] = final_cmd
|
kw['cmd'] = final_cmd
|
||||||
|
|||||||
Reference in New Issue
Block a user