omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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?

    Pythonista
    3
    4
    4399
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mr88cet
      mr88cet last edited by

      (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.

      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        press and hold the play button, it will pop up a dialog asking for arguments.

        1 Reply Last reply Reply Quote 5
        • mr88cet
          mr88cet last edited by

          Ah! Very good. Thanks!

          1 Reply Last reply Reply Quote 0
          • halloleooo
            halloleooo last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors