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 using editor module?

    Pythonista
    2
    3
    3382
    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.
    • JadedTuna
      JadedTuna last edited by

      Hey all! I wanna ask, is there a way to run some script in Pythonista using editor module? Or somehow else, not using RUN button? Thanks.

      EDIT:
      Basically, I have a simple console on my comp, using which I want to control Pythonista. In Pythonista I have a client, which receives data from computer. And I want to somehow run scripts in Pythonista, without stopping my client (ex send run somescript.py from comp), some equalent to os.system("python somescript.py"). Sorry for my bad english.

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

        You could use the built-in execfile() function for this.

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

          Wow, thanks a lot!

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