From 787c09b318252b0c9d92514f2467540cd4995138 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter Date: Tue, 17 Apr 2018 23:43:22 +0200 Subject: [PATCH] Add the 3i SlideBook jar to the list of jars if present --- bioformats/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bioformats/__init__.py b/bioformats/__init__.py index 4e012a6..c18de25 100644 --- a/bioformats/__init__.py +++ b/bioformats/__init__.py @@ -26,10 +26,14 @@ JAR_VERSION = '6.5.1' +# directories, jar and zip files to be added to the JVM's class path: JARS = javabridge.JARS + [os.path.realpath(os.path.join(_jars_dir, name + '.jar')) for name in ['bioformats_package']] -"""List of directories, jar files, and zip files that should be added -to the Java virtual machine's class path.""" + +# add the 3i SlideBook reader jar if present: +_sld6 = os.path.realpath(os.path.join(_jars_dir, 'SlideBook6Reader.jar')) +if os.path.exists(_sld6): + JARS.append(_sld6) # See http://www.loci.wisc.edu/software/bio-formats READABLE_FORMATS = ('1sc', '2fl', 'acff', 'afi', 'afm', 'aim', 'al3d', 'ali',