Pack the python script!

Python scripts can be packed with dependencies and distributed easily.

I had to deploy a script.py on a machine without argparse module. The solution was trivial

#mv script.py __main__.py
#zip -r script.py  -j __main__.py  /usr/lib/python2.7/argparse.py

Our shiny script.py is actually a zip file, runnable with

#python script.py --help

Lascia un commento