Skip to content
Snippets Groups Projects
Commit 7dd32990 authored by Hugo CHAUVET's avatar Hugo CHAUVET :bicyclist:
Browse files

Fix import error on ImageJ from jython

parent 2fa716f2
No related branches found
No related merge requests found
......@@ -29,13 +29,12 @@ from ij import WindowManager
import re
import sys
try:
basedir = os.path.dirname(__file__)
except:
basedir = os.path.expanduser("~/Documents/ImageJ-Script")
print(basedir)
# New way to import based on IJ documentation
# https://imagej.net/scripting/jython/
from java.lang.System import getProperty
path.append(getProperty('user.home') + '/Documents/ImageJ-Script')
sys.path.append(basedir)
from utils.ImagesLoaders import load_image_sequence
# Import to do operation with ImageJ2 and ImgMath
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment