We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 421e6e5 + be8739a commit 600d6deCopy full SHA for 600d6de
1 file changed
ImageD11/cImageD11.py
@@ -8,6 +8,7 @@
8
9
if os.environ.get("IMAGED11_USE_C2") == "1":
10
from c2ImageD11 import *
11
+ C2_BACKEND = True
12
else:
13
try:
14
from ImageD11._cImageD11 import *
@@ -22,6 +23,13 @@
22
23
print("or:")
24
print(" python setup.py build_ext --inplace")
25
raise
26
+ C2_BACKEND = False
27
+
28
+try:
29
+ import c2ImageD11 as _c2
30
+ C2_VERSION = getattr(_c2, "__version__", None)
31
+except ImportError:
32
+ C2_VERSION = None
33
34
# Check for the use of openmp interactions with os.fork and multiprocessing
35
0 commit comments