diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-09-26 18:31:07 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-09-26 18:31:07 +0300 |
commit | dcdfb7e3bab46ca281ecc83d6fb87f2cbf7b5b06 (patch) | |
tree | 4e17bfbef4d3e2fbb2b65c7967a53bd56389e88d | |
parent | 263c917c6a281c73f1ee7b853887e47ca93b4845 (diff) | |
download | meson-dcdfb7e3bab46ca281ecc83d6fb87f2cbf7b5b06.zip meson-dcdfb7e3bab46ca281ecc83d6fb87f2cbf7b5b06.tar.gz meson-dcdfb7e3bab46ca281ecc83d6fb87f2cbf7b5b06.tar.bz2 |
A few suffix fixes.
-rw-r--r-- | dependencies.py | 2 | ||||
-rwxr-xr-x | meson_install.py | 2 |
2 files changed, 2 insertions, 2 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] diff --git a/meson_install.py b/meson_install.py index f267c5d..67b3a07 100755 --- a/meson_install.py +++ b/meson_install.py @@ -107,7 +107,7 @@ def run_install_script(d): script = d.install_script print('Running custom install script %s' % script) suffix = os.path.splitext(script)[1].lower() - if platform.system().lower() == 'windows' and suffix != 'bat': + if platform.system().lower() == 'windows' and suffix != '.bat': first_line = open(script).readline().strip() if first_line.startswith('#!'): commands = first_line[2:].split('#')[0].strip().split() |