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.


    How to run scripts with argv

    Editorial
    2
    3
    1537
    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.
    • alwesome
      alwesome last edited by

      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

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

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

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

          Oh wow thank you.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors