From 5d8267c340d5bc630c8868fca2216ac87f33509c Mon Sep 17 00:00:00 2001 From: Daniele Pantaleone Date: Sun, 7 Feb 2016 15:10:49 +0100 Subject: [PATCH] setup: fixed jre_home variable referenced before assignment --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 4b9df04..1b6b313 100644 --- a/setup.py +++ b/setup.py @@ -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: