better guess of java home

This commit is contained in:
Gabriel Pettier 2019-11-25 01:38:30 +01:00
parent 30cda7518f
commit 36b10ab900
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ def get_library_dirs(platform, arch=None):
def get_jre_home(platform):
jre_home = None
if exists(join(JAVA_HOME, 'jre')):
if JAVA_HOME and exists(join(JAVA_HOME, 'jre')):
jre_home = join(JAVA_HOME, 'jre')
if platform != 'win32' and not jre_home: