Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python sys.argv exception

try:
    filename = sys.argv[1]
except IndexError:
    print "You did not specify a file"
    sys.exit(1)

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #exception
ADD COMMENT
Topic
Name
8+8 =