aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2017-06-26 17:25:00 +0200
committerPatrice Clement <monsieurp@gentoo.org>2017-06-26 17:25:00 +0200
commit1629fd1ca819c34b883dc934df0ecab786aa54fe (patch)
tree3916d17e21a4096d75b5e22e323c9d5d1c24a55d
parentwrapped needed vars check logic in a variable (diff)
downloadjava-config-1629fd1ca819c34b883dc934df0ecab786aa54fe.tar.gz
java-config-1629fd1ca819c34b883dc934df0ecab786aa54fe.tar.bz2
java-config-1629fd1ca819c34b883dc934df0ecab786aa54fe.zip
remove useless variable definition
-rw-r--r--src/java_config_2/VM.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/java_config_2/VM.py b/src/java_config_2/VM.py
index 6213be1..c0c5ec5 100644
--- a/src/java_config_2/VM.py
+++ b/src/java_config_2/VM.py
@@ -84,14 +84,11 @@ class VM:
return self.query('PROVIDES_VERSION')
def find_exec(self, executable):
- path = None
-
path = self.query('PATH')
paths = path.split(':')
for path in paths:
path = os.path.join(path, executable)
-
if os.path.isfile(path):
if not os.access(path, os.X_OK):
raise PermissionError