On Dec 12, 12:59 pm, r <rt8...@gmail.com> wrote: > yes, but your script will need to know hoe to handle this.the > following will open a file who's name was passed to the script > > if len(sys.argv) > 1: > try: > open_file(fname=sys.argv[1]) > except: > pass
ah, ok. now what if I want the variable to be an integer that I send? for instance if I send 99 to the program, it is picking it up as a string instead of an integer value. How do I handle this with python?? -- http://mail.python.org/mailman/listinfo/python-list