load thonny from cli and auto start script?

87 views
Skip to first unread message

Ram Shaffir

unread,
Jul 6, 2020, 11:08:16 AM7/6/20
to thonny
Hello,

I use Thonny 3.2.6 on RPI, i want to call Thonny from terminal and have it open a script and run it,the following opens Thonny with temp.py:

thonny /home/pi/Desktop/temp.py 

is there a switch like --run that will make Thonny run the script on load?

many thanks in advance!
RS

Aivar Annamaa

unread,
Jul 6, 2020, 5:11:44 PM7/6/20
to thonny
Hi!

No, Thonny doesn't have such switch. If you just want to run your code then I recommend to bypass Thonny and do just "python3 temp.py".

Best regards,
Aivar

Ram Shaffir

unread,
Jul 7, 2020, 3:11:24 AM7/7/20
to thonny
thank you.
Reply all
Reply to author
Forward
0 new messages