Forum Archive

How to run scripts with argv

alwesome

Hello. I am kind of new to the python programming and I am just wondering how to run scripts that require sys argv from the interactive prompt, for example.

from sys import argv

script, filename = argv

Thank you

omz

In Editorial, you can't really do this, in Pythonista however, try tapping and holding the run button in the editor.

alwesome

Oh wow thank you.