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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ensure_shebang_runtime-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 b49e4a9dad54caa756ffc75c40670a5bc6b2538e99afdb0c380ecce93ce808e7
MD5 d8cdd208a79a8f215e5b07c25b6d1234
BLAKE2b-256 1cf1b753e584342f8410dff75ed148963cf5eda845b07afb4d289006024ec214

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ensure_shebang_runtime-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50cec052d1795b076a4883f8b3c3725227a0d78c278b57d916fab72bca15ad9c
MD5 8caf8b1b7b25409654601982d1546c59
BLAKE2b-256 7793ef7b1ed6491925ac3f5f42a08dad182e451984509e9b0055778aeafacff7

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