Re: Jython - output files not being saved
Posted by jswalker on May 13, 2016; 6:08pm
URL: http://imagej.273.s1.nabble.com/Jython-output-files-not-being-saved-tp5016398p5016432.html
Update: Problem resolved - by changing fs.saveAsJpeg(os.path.join(saveDir, fileName)) to fs.saveAsJpeg(os.path.join(saveDir, fileName + ".jpg")) in the first case, and changing (for example) IJ.saveAs("Text", fileName+".txt") to IJ.saveAs("Text", saveDir + fileName+".txt") in the other cases. I ended up calling os.path.splitext as well, which gets rid of the double file extension.