diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 7f4e04d..7ebb814 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -28,3 +28,4 @@ Tobias Grubenmann Arvid Norlander David Cox Maximilian Peltzer +Adi Harif diff --git a/pyswip/core.py b/pyswip/core.py index 725d984..36f9aeb 100644 --- a/pyswip/core.py +++ b/pyswip/core.py @@ -149,10 +149,8 @@ def _findSwiplFromExec(): files = glob.glob(pattern) if len(files) == 0: fullName = None - elif len(files) == 1: + else: fullName = files[0] - else: # Will this ever happen? - fullName = None except (OSError, KeyError): # KeyError from accessing rtvars pass