Skip to content

Commit

Permalink
Handle shebang for 'python3' in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
chmate committed Oct 9, 2023
1 parent 0fe0a6c commit f0cc19c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xonsh/procs/specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _un_shebang(x):
return []
elif any(x.startswith(i) for i in ["/usr/bin", "/usr/local/bin", "/bin"]):
x = os.path.basename(x)
elif x.endswith("python") or x.endswith("python.exe"):
elif x.endswith("python") or x.endswith("python3") or x.endswith("python.exe"):
x = "python"
if x == "xonsh":
return ["python", "-m", "xonsh.main"]
Expand Down

0 comments on commit f0cc19c

Please sign in to comment.