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.3.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.3.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ensure_shebang_runtime-0.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 cd1192b4f511844996a226c1487b41b265c15b7f039ccd8e89b7d52eefe6bab3
MD5 1d8941cd0003d855eb25ab3316023154
BLAKE2b-256 afe699731c269fede8a02b8810c7ce34abf3a9a70e7199475491ee275956b3bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ensure_shebang_runtime-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b27b502b9a7e3886243a37d058dc9fb229b7963e6c05d09d85c912ff01c66af
MD5 8f022cfe74cecc208735a077dfdb4715
BLAKE2b-256 1a6d709a7916e3b046b61cedf3ab4a21805b95a35f3eef3142168974c7c5dc10

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