Strange jython scripts behavior
Posted by
Leon Espinosa-3 on
May 19, 2014; 10:12am
URL: http://imagej.273.s1.nabble.com/Running-batch-files-tp5007769p5007784.html
Dear developers, I have note this in FIJI : If you have a simple jython script like :
test_.py
IJ.showMessage("test")
And you put in the plugins folder and try to run it from the plugins menu (after re-start FIJI), it says :
"Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'IJ' is not defined"
But if you open the script editor, open the script (or any .py script) and run from the script editor , then all the .py scripts present in the plugins menu become available. Even if the script editor is closed.
Is there a possibility to start the jython interpreter automatically when you open the program ? It would it make easy to distribute simple .py scripts...
Thank you for your help... !
Leon
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html