Firstly, thank you very much for writing the instructions for executing Jython scripts within Freeplane. They work.
Unfortunately, Freeplane doesn't seem to refresh what it thinks the contents of a .py file is unless you bounce the Freeplane App (I'm using macOS SIerra running the latest stable Freeplane -- 1.5.21 using the embedded JRS 1.8.0_131).
I know that I can do some groovy trickery and use PythonInterpreter.execfile('/abspath/to/script'), but that seems hokey, and then I need two scripts for each Python script (the .groovy wrapper and the actual .py script).
Do you know how to force Freeplane or Jython to 'refresh' what it thinks is the contents of the script file? Much thanks!
Firstly, thank you very much for writing the instructions for executing Jython scripts within Freeplane. They work.
Unfortunately, Freeplane doesn't seem to refresh what it thinks the contents of a
.pyfile is unless you bounce the Freeplane App (I'm using macOS SIerra running the latest stable Freeplane -- 1.5.21 using the embedded JRS 1.8.0_131).I know that I can do some groovy trickery and use
PythonInterpreter.execfile('/abspath/to/script'), but that seems hokey, and then I need two scripts for each Python script (the .groovy wrapper and the actual .py script).Do you know how to force Freeplane or Jython to 'refresh' what it thinks is the contents of the script file? Much thanks!