aboutsummaryrefslogtreecommitdiff
path: root/dependencies.py
diff options
context:
space:
mode:
Diffstat (limited to 'dependencies.py')
-rw-r--r--dependencies.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dependencies.py b/dependencies.py
index 4668ccf..448e6fe 100644
--- a/dependencies.py
+++ b/dependencies.py
@@ -137,7 +137,7 @@ class ExternalProgram():
self.fullpath = [shutil.which(name)]
if self.fullpath[0] is None and search_dir is not None:
trial = os.path.join(search_dir, name)
- suffix = os.path.splitext(trial)[-1].lower()
+ suffix = os.path.splitext(trial)[-1].lower()[1:]
if environment.is_windows() and (suffix == 'exe' or suffix == 'com'\
or suffix == 'bat'):
self.fullpath = [trial]