Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the 3i SlideBook jar to the list of jars if present #150

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions bioformats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down