Category "sys"

How to pass a string variable from shell script to python with sys.argv?

I would like to pass a string variable from a Shell Script to my python script and have it stored in sys.argv[1]. Currently, this is my situation: main.sh TEST=

Print all argparse arguments including defaults

I want to log the usage of a python program which uses the argparse module. Currently, the logger records the command line usage similar to the answer given in

Blender import python module

I am running Blender 2.49 with Python27 (for testing) and am trying to import webbrowser and os. When I try webbrowser the console returns "no module named webb