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__)
# === Your actual logic starts here including imports ===

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.4.0.tar.gz (2.4 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.4.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ensure_shebang_runtime-0.4.0.tar.gz
  • Upload date:
  • Size: 2.4 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.4.0.tar.gz
Algorithm Hash digest
SHA256 bc9fe59f0ab2fc4b97662a3f9de4626ba90ed7ec01e1eec528e23c5f428040b7
MD5 b46dd2d841f37bb70487d15a62fb6a4f
BLAKE2b-256 d4506505af540e5da54558f2ff33e39e81bfefd13dddcd33f8be2628abb842d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ensure_shebang_runtime-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd293878b37412e6e9fc23aea793fb68fc7687d5271183705f7c8d4d93538c89
MD5 1cf3a520bb5cdc2f977d5fd2047f673b
BLAKE2b-256 cee018757c9279e8d8d14f436763634a970df8736103ffda506aca86de03fdb6

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