Potential updates to ImageJ + a question
Posted by
haider on
Feb 14, 2015; 11:41am
URL: http://imagej.273.s1.nabble.com/Potential-updates-to-ImageJ-a-question-tp5011598.html
Hello
I just finished writing a plugin for ImageJ and I observed a few things that I thought could be changed. I wrote my project in Jython primarily (but there is one Java class that calls native code). The first point is that the default python version used by ImageJ is old and does not allow the use of “with” statements. I overcame this by using try and finally but unless there is good reason like backward compatibility, I think the python used by ImageJ should allow the use of with statements to make things easier. Also, I had to use the source and target options for javac to compile my classes to an older version of java but I assume the older version is used for compatibility reasons.
Another problem is that I am unable to import the “os” module in python. I wanted to use the os module to modify the python class path because as it currently stands, the installation process (for our plugin) requires placing different folders in too many different places. I have a “.dat” file that I have to place in the main ImageJ folder (alongside luts, macros, plugins). I would like to put this in the folder along with my python scripts. I also have a couple of jar files as dependencies (the ones that call the C code) in the jar folder and the shared library for the C outside in the plunge folder. Is there a way to play with the paths to organize these folders as such so that users have to put these files in a minus number of places.
Thank you
Haider
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html