linux - making a python package behave as a native cli app -



linux - making a python package behave as a native cli app -

i have python bundle can utilize on command line as

python -m pkgname [args]

i want give native-like behaviour (on linux)

pkgname [args]

how do this?

use shebang.

maybe putting in first line of script:

#!/usr/bin/env python

also you'll have create executable chmod +x pkgname.py , create available path.

python linux command-line

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -