Skip to main content

get script shebang

Project description

Installation

$ [sudo] pip install shebang

Functions

function __doc__
shebang.get(path) return script shebang
shebang.shebang(path) return script shebang. deprecated

Executable modules

usage __doc__
python -m shebang path print script shebang

Examples

>>> import shebang

>>> shebang.get("path/to/file.py")
'/usr/bin/env python'

>>> shebang.get("path/to/file.txt")
None

>>> shebang.get("/bin/ls")
None
$ python -m shebang file.py
/usr/bin/env python

python-readme-generator

Project details


Download files

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

Files for shebang, version 2019.4.13
Filename, size File type Python version Upload date Hashes
Filename, size shebang-2019.4.13.tar.gz (1.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page