Cotton Blog via Pycoders points out the easiest way to run a script under uvx:
Note the shebang line: #!/usr/bin/env -S uv run –script. It is important to specify uv run with the –script flag when used on the shebang line.
Hi 👋 I’m an astronomer and full-stack software developer for leading astronomy research facilities as a freelance developer for J.Sick Codes.
Cotton Blog via Pycoders points out the easiest way to run a script under uvx:
Note the shebang line: #!/usr/bin/env -S uv run –script. It is important to specify uv run with the –script flag when used on the shebang line.