Ursprungsmitteilung
Thema Execute programs from the command line 
Autor Cleo 
Eingangsdatum 2020-10-27 00:00:02.0 
Mitteilung Hi,

Is it possible to run a program from the command line?

I would like for example to save a screenshot of this program without opening the
TigerJython graphical interface:

from gturtle import *
makeTurtle()
forward(100)
savePlayground("/Users/cleo/tmp/test.png", "png")

I tried for example the ajython.jar with the command:
java -jar ajython.jar test.py
But I get:
File "test.py", line 1, in <module>
from gturtle import *
File "/Users/cleo/TigerJython/ajython/ajython.jar/Lib/gturtle.py", line 12, in <module>
ImportError: No module named simulationbar

Thanks in advance! 
 
      
Antworten
Thema Execute programs from the command line 
Autor Jarka 
Eingangsdatum 2020-10-27 00:42:03.0 
Mitteilung Hi

Search this post in this forum:
"Programm vom Kommandozeile aus starten, Aegidius Plüss "
(readme.txt in file ajython.zip is in englisch...)

I tested your program. It works perfectly.




 
 
Thema Execute programs from the command line 
Autor Jarka 
Eingangsdatum 2020-10-27 01:17:46.0 
Mitteilung Hi Cleo
Sorry, the topic is
Programm ohne Umgebung, Simon 2014-12-12 09:49:42.0
(Aegidius Plüss answered...)

You can also search for "ajython".

Best regards

Jarka