<class '__main__.MyPlugin'> is a built-in class

Hi,

I could launch my first script on the console with exec(open(…).read())

but now that I use the ActionPlugin class it complains my class is a built in class

how can I get the output (print…) from my plugin scripts ?

thanks

Depending on your OS it’s either impossible (windows) or as easy as running kicad from terminal (mac, linux).

For windows you have to use wx.MessageBox and wx.LogMessage instead of print.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.