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?
-
Hey all! I wanna ask, is there a way to run some script in Pythonista using
editor
module? Or somehow else, not usingRUN
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 sendrun somescript.py
from comp), some equalent toos.system("python somescript.py")
. Sorry for my bad english. -
You could use the built-in
execfile()
function for this. -
Wow, thanks a lot!