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 -

google shop client API returns 400 bad request error while adding an item -