Python passing values from command line -


i want pass value python script, shown in below image

enter image description here

where, xyz python file requires abc value.

how do , access abc value in xyz.py?

you can try this,

#!/usr/bin/python  import sys  print 'argument list:', str(sys.argv) 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

android - IBM Worklight 6.1 [Application Error] There was a network error (file:///android_asset/www/index.html) -