Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Pythonista: Run Script with Command-Line Parameters?
-
(Apologize in advance if I just missed it, but I can't seem to find this either in the docs or this forum.)
Is there a way to invoke our scripts such that Pythonista prompts for would-be-command-line parameters, to appear to my script as sys.argv[]?
Conceptually/ideally, it would seem like any query in your code of sys.argv[] should trigger it to prompt for command-line parameters.
-
press and hold the play button, it will pop up a dialog asking for arguments.
-
Ah! Very good. Thanks!
-
This post is deleted!