shellista icon indicating copy to clipboard operation
shellista copied to clipboard

Running scene files directly using python <filename> doesn't work

Open transistor1 opened this issue 11 years ago • 2 comments

If you pass a filename to the python command, the desired behavior should be that Pythonista directly runs that file.

For example:

python Clock.py

should immediately run the Clock app.

I am not sure whether or not this is possible with Pythonista. I tried implementing this using execfile() as well as __import__() and I couldn't get either to work

transistor1 avatar Jun 18 '14 00:06 transistor1

Scenes are funny, and don't execute until other scripts end. python Zen.py works as expected

jsbain avatar Jun 18 '14 15:06 jsbain

Updated, thanks @jsbain!

transistor1 avatar Jun 18 '14 18:06 transistor1