mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
Pep8
This commit is contained in:
parent
2ce5f5897e
commit
054f29cdd6
1 changed files with 3 additions and 3 deletions
|
@ -304,15 +304,15 @@ def windows_bash_command():
|
|||
if bash_on_path:
|
||||
try:
|
||||
out = subprocess.check_output([bash_on_path, '--version'],
|
||||
stderr=subprocess.PIPE,
|
||||
universal_newlines=True)
|
||||
stderr=subprocess.PIPE,
|
||||
universal_newlines=True)
|
||||
except subprocess.CalledProcessError:
|
||||
bash_works = False
|
||||
else:
|
||||
# Check if Bash is from the "Windows Subsystem for Linux" (WSL)
|
||||
# which can't be used by xonsh foreign-shell/completer
|
||||
bash_works = 'pc-linux-gnu' not in out.splitlines()[0]
|
||||
|
||||
|
||||
if bash_works:
|
||||
wbc = bash_on_path
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue