Skip to content

andrewp-as-is/shebang.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

$ [sudo] pip install 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

readme42.com

About

get script shebang

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published