shebang(path) - get script shebang
Project description
Install
github.com: pip install git+git://github.com/russianidiot/shebang.py.git
pypi.python.org: pip install shebang
download: [ -e requirements.txt ] && pip install -r requirements.txt; python setup.py install
Usage
shebang(path) function
from shebang import *
>>> shebang("path/to/file.py")
'/usr/bin/env python'
>>> shebang("path/to/file.txt")
None
shebang("/bin/test")
None
Feedback
- Chat with me (english/russian)
russianidiot.github.io/python/ - my Python packages
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.5.tar.gz
(7.2 kB
view hashes)