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