Search code examples
pythonconsoleironpythonargvsharpdevelop

How To Pass Command Line Arguments IronPython


Possible Duplicate:
How can I pass command-line arguments in IronPython?

I am new to ironpython and sharpdevelop and I am trying to run the following code,

from sys import argv

script, first, second, third = argv

print "The script is called:", script
print "Your first variable is:", first
print "Your second variable is:", second
print "Your third variable is:", third

How do I pass the arguments to the command line ?


Solution

  • In SharpDevelop you

    • right-click on the python project
    • choose Properties in the context-menu
    • choose the Debug-tab
    • append your arguments in the Command line arguments field