The documentation for the Jython Registry lists, among others, the following source for the registry file:
The user’s personal registry file, which contains similarly formated
prop/value pairs. The user’s registry file is at "user.home"+"/.jython"
With a file .jython
in your user home directory, containing the single line:
python.security.respectJavaAccessibility=false
... the following example script will output 1
without throwing an error:
from ij import ImagePlus
print (ImagePlus.CLOSED) # a private field
Note that ImageJ-specific questions are best asked on the dedicated forum: https://forum.image.sc/tag/imagej
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…