modulinos - programs that only run main() if they're not loaded as libraries by other programs.
EXAMPLE
$ cd python
$ python modulino.py
Main: The meaning of life is 42
$ python test.py
Test: The meaning of life is 42
Rosetta Code
http://rosettacode.org/wiki/Modulinos
http://rosettacode.org/wiki/Multiline_shebang
REQUIREMENTS
Optional
- make
- GNU findutils
- stank (e.g.
go get github.com/mcandre/stank/...
) - Python 3+ (for yamllint)
- Node.js (for eclint)