mirror of https://github.com/kivy/pyjnius.git
setup: fixed jre_home variable referenced before assignment
This commit is contained in:
parent
c8bfdc8351
commit
5d8267c340
1
setup.py
1
setup.py
|
@ -103,6 +103,7 @@ else:
|
||||||
if not jdk_home or not exists(jdk_home):
|
if not jdk_home or not exists(jdk_home):
|
||||||
raise Exception('Unable to determine JDK_HOME')
|
raise Exception('Unable to determine JDK_HOME')
|
||||||
|
|
||||||
|
jre_home = None
|
||||||
if exists(join(jdk_home, 'jre')):
|
if exists(join(jdk_home, 'jre')):
|
||||||
jre_home = join(jdk_home, 'jre')
|
jre_home = join(jdk_home, 'jre')
|
||||||
if not jre_home:
|
if not jre_home:
|
||||||
|
|
Loading…
Reference in New Issue