Replies: 3 comments 13 replies
-
Yes! This is great! Thanks for getting the ball rolling on this.
You can write Python code to set environment variables. Something like
The tricky part is writing the code to figure out the correct path to put in there. The user can have more than one java installation on their computer. Thonny has some kind of extra help messages when errors are thrown, right? Or is that mu? But in any case, py5 supports customizing all of the error messages. If you wanted to augment the error messages with helpful and targeted advice for how to respond to each error message, this package you are making could add those customizations.
It's a bit odd but once you get the hang of it you can make and deploy packages with just a few lines of code. When you get to that point we can provide some assistance there. There's also a test environment for you to play around with. |
Beta Was this translation helpful? Give feedback.
-
I have made another experimental Thonny plug-in, almost exactly like this one, for |
Beta Was this translation helpful? Give feedback.
-
@villares -- you've inspired me to take a closer look at this 😃 I've experimented with something that'll automatically download and set up JDK and py5: This plugin downloads JDK and installs it in the Thonny (portable version) lib directory, then sets the |
Beta Was this translation helpful? Give feedback.
-
CC @tabreturn ... I have no idea of what I'm doing, but... seems to work on my computer.
https://github.com/villares/thonny-py5-runner/
- I think I should suppress the "on close" dialog if the message is emptydoneUPDATED: removed the empy message dialog, but... serious questions remain about tapping into the full Thonny's Python debug features and output for the
print()
functionBeta Was this translation helpful? Give feedback.
All reactions