We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b977d42 + 677888b commit e476e28Copy full SHA for e476e28
javabridge/locate.py
@@ -70,7 +70,10 @@ def is_mingw():
70
71
def find_javahome():
72
"""Find JAVA_HOME if it doesn't exist"""
73
- if 'JAVA_HOME' in os.environ:
+ if 'CP_JAVA_HOME' in os.environ:
74
+ # Prefer CellProfiler's JAVA_HOME if it's set.
75
+ return os.environ['CP_JAVA_HOME']
76
+ elif 'JAVA_HOME' in os.environ:
77
return os.environ['JAVA_HOME']
78
elif is_mac:
79
# Use the "java_home" executable to find the location
0 commit comments