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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

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

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