aboutsummaryrefslogtreecommitdiff
path: root/dependencies.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-09-26 18:31:07 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2014-09-26 18:31:07 +0300
commitdcdfb7e3bab46ca281ecc83d6fb87f2cbf7b5b06 (patch)
tree4e17bfbef4d3e2fbb2b65c7967a53bd56389e88d /dependencies.py
parent263c917c6a281c73f1ee7b853887e47ca93b4845 (diff)
downloadmeson-dcdfb7e3bab46ca281ecc83d6fb87f2cbf7b5b06.zip
meson-dcdfb7e3bab46ca281ecc83d6fb87f2cbf7b5b06.tar.gz
meson-dcdfb7e3bab46ca281ecc83d6fb87f2cbf7b5b06.tar.bz2
A few suffix fixes.
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]