mirror of https://github.com/kivy/pyjnius.git
better guess of java home
This commit is contained in:
parent
30cda7518f
commit
36b10ab900
|
@ -94,7 +94,7 @@ def get_library_dirs(platform, arch=None):
|
||||||
|
|
||||||
def get_jre_home(platform):
|
def get_jre_home(platform):
|
||||||
jre_home = None
|
jre_home = None
|
||||||
if exists(join(JAVA_HOME, 'jre')):
|
if JAVA_HOME and exists(join(JAVA_HOME, 'jre')):
|
||||||
jre_home = join(JAVA_HOME, 'jre')
|
jre_home = join(JAVA_HOME, 'jre')
|
||||||
|
|
||||||
if platform != 'win32' and not jre_home:
|
if platform != 'win32' and not jre_home:
|
||||||
|
|
Loading…
Reference in New Issue