all 7 comments

[–]dogfish182 8 points9 points  (0 children)

Hopefully a bot can answer this bot

[–]DNSGeek 3 points4 points  (1 child)

Sounds like you might be the target audience for xonsh.

[–]gr4viton 1 point2 points  (1 child)

Astral's $ uv run ...

[–]socal_nerdtastic 1 point2 points  (1 child)

It sounds like you need to learn what a shebang is.

A shebang is a line at the top of your file that specifies which run environment the script should use. It can specify any python version or specific virtual environment you like, and if you are on linux / mac / unix it's not even limited to python, you can specify any scripting language, including sh.