i was just giving you an example from my TextEditor.py script. this is how arg works lets say you have a script named MyScript.py --- import sys print sys.argv --- call the script with arguments > MyScript.py 99 100 ['C:\\Python25\\MyScript.py', '99', '100']
int(sys.argv[1]) -> 99 -- http://mail.python.org/mailman/listinfo/python-list