|
1 | | -'''Bioformats package - wrapper for loci.bioformats java code |
2 | | -
|
3 | | -CellProfiler is distributed under the GNU General Public License, |
4 | | -but this file is licensed under the more permissive BSD license. |
5 | | -See the accompanying file LICENSE for details. |
6 | | -
|
7 | | -Copyright (c) 2003-2009 Massachusetts Institute of Technology |
8 | | -Copyright (c) 2009-2013 Broad Institute |
9 | | -All rights reserved. |
| 1 | +# Python-bioformats is distributed under the GNU General Public |
| 2 | +# License, but this file is licensed under the more permissive BSD |
| 3 | +# license. See the accompanying file LICENSE for details. |
| 4 | +# |
| 5 | +# Copyright (c) 2009-2014 Broad Institute |
| 6 | +# All rights reserved. |
10 | 7 |
|
11 | | -Please see the AUTHORS file for credits. |
| 8 | +'''Bioformats package - wrapper for loci.bioformats java code |
12 | 9 |
|
13 | | -Website: http://www.cellprofiler.org |
14 | 10 | ''' |
15 | | -__version__ = "$Revision$" |
| 11 | + |
| 12 | +try: |
| 13 | + from _version import __version__ |
| 14 | +except ImportError: |
| 15 | + # We're running in a tree that doesn't have a _version.py, so we don't know what our version is. |
| 16 | + __version__ = "0.0.0" |
16 | 17 |
|
17 | 18 | import os.path |
18 | 19 | import javabridge |
19 | 20 | from . import formatreader as _formatreader |
20 | 21 | from . import formatwriter as _formatwriter |
21 | 22 |
|
22 | 23 | _jars_dir = os.path.join(os.path.dirname(__file__), 'jars') |
| 24 | + |
23 | 25 | JARS = javabridge.JARS + [os.path.realpath(os.path.join(_jars_dir, name + '.jar')) |
24 | 26 | for name in ['loci_tools']] |
| 27 | +"""List of directories, jar files, and zip files that should be added |
| 28 | +to the Java virtual machine's class path.""" |
25 | 29 |
|
26 | 30 | # See http://www.loci.wisc.edu/software/bio-formats |
27 | 31 | READABLE_FORMATS = ('al3d', 'am', 'amiramesh', 'apl', 'arf', 'avi', 'bmp', |
|
0 commit comments