Skip to content

Commit

Permalink
Fixed not finding swipl lib file when there are multiple options (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdiHarif authored Jun 8, 2024
1 parent 8eec091 commit a91a899
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ Tobias Grubenmann
Arvid Norlander
David Cox
Maximilian Peltzer
Adi Harif
4 changes: 1 addition & 3 deletions pyswip/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a91a899

Please sign in to comment.