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.


    execute .py within shellista.py

    Pythonista
    2
    2
    1432
    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.
    • radlsneak
      radlsneak last edited by

      Is there anyway to launch another .py file while inside of shellista.py? or how would I go about adding that to the current code. I would like to just be able to call a script from with by just a name, like running ls but instead call my script.

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

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

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