Skip to content

Commit

Permalink
locate bash using shutil.which
Browse files Browse the repository at this point in the history
  • Loading branch information
evacchi committed Jan 26, 2023
1 parent f7310c7 commit 2e861df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python-bash-windows/script.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import subprocess
from shutil import which

args = [
'bash',
which('bash'),
'script.sh',
]

Expand Down

0 comments on commit 2e861df

Please sign in to comment.