setup: fixed jre_home variable referenced before assignment

This commit is contained in:
Daniele Pantaleone 2016-02-07 15:10:49 +01:00
parent c8bfdc8351
commit 5d8267c340
1 changed files with 1 additions and 0 deletions

View File

@ -103,6 +103,7 @@ else:
if not jdk_home or not exists(jdk_home):
raise Exception('Unable to determine JDK_HOME')
jre_home = None
if exists(join(jdk_home, 'jre')):
jre_home = join(jdk_home, 'jre')
if not jre_home: