Execute a python file with arguments with PyScripter -


i have piece of python code.

from sys import argv  script, first, second, third = argv  print "the script called:", script print "your first variable is:", first print "your second variable is:", second print "your third variable is:", third 

i use pyscripter ide python 2.7, not sure how pass arguments it, there python interpreter window on bottom of ide.

ide

found solution myself. click run menu find command line parameters. clicking input want.

image


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -