Skip to main content

Re-executes Python scripts under the interpreter specified in the shebang line.

Project description

ensure-shebang-runtime

A lightweight helper to re-execute a Python script using the interpreter defined in its shebang (#!) line — even if it was run via python script.py.

Usage

import ensure_shebang_runtime
ensure_shebang_runtime.reexec_with_shebang(__file__)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ensure_shebang_runtime-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ensure_shebang_runtime-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file ensure_shebang_runtime-0.1.0.tar.gz.

File metadata

  • Download URL: ensure_shebang_runtime-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for ensure_shebang_runtime-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a1a3e0b7319f40b688dcee2769dc7bbe75b010f6a7ee3a0008f2295a40de3c63
MD5 efaaa4e98f4dc65ae8206442415f856d
BLAKE2b-256 3e92d0e61a2574f32597d3283515b565bd504026972defd13128e8874354d584

See more details on using hashes here.

File details

Details for the file ensure_shebang_runtime-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ensure_shebang_runtime-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f5716a5f072e96e457e1a364a4b102247751b025d960be79172792778acef66
MD5 fd966fd949f68ad6115b9f45539b4d0f
BLAKE2b-256 ee3972f39582521c6293c97d842a58304737c857daf560e9748a1a85bfe4ccbd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page