shebang(path) - get script shebang
Project description
Install
[sudo] pip install shebang
Usage
>>> from shebang import shebang
>>> shebang(path)
Example
>>> shebang("path/to/file.py")
'/usr/bin/env python'
>>> shebang("path/to/file.txt")
None
shebang("/bin/test")
None
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shebang-0.0.9.tar.gz
(2.0 kB
view hashes)