aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-11-20 23:38:26 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-11-21 23:29:06 +0200
commit22adda16179e11dd7e5ca34a34e6286afcf6c0c9 (patch)
treecbcf0e9047aa4f245a1b4ba50321c42325ccc443 /mesonbuild/mesonlib.py
parent105ea1e597a6ec5e711d95ec6339597ef759c475 (diff)
downloadmeson-22adda16179e11dd7e5ca34a34e6286afcf6c0c9.zip
meson-22adda16179e11dd7e5ca34a34e6286afcf6c0c9.tar.gz
meson-22adda16179e11dd7e5ca34a34e6286afcf6c0c9.tar.bz2
Review fixes.
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r--mesonbuild/mesonlib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py
index 35aa036..83bfdbe 100644
--- a/mesonbuild/mesonlib.py
+++ b/mesonbuild/mesonlib.py
@@ -22,12 +22,12 @@ import collections
from glob import glob
-if sys.executable.endswith('meson.exe'):
+if os.path.basename(sys.executable) == 'meson.exe':
# In Windows and using the MSI installed executable.
meson_command = [sys.executable]
python_command = [sys.executable, 'runpython']
else:
- meson_command = [sys.executable, os.path.join(os.path.split(__file__)[0], '..', 'meson.py')]
+ meson_command = [sys.executable, os.path.join(os.path.dirname(__file__), '..', 'meson.py')]
python_command = [sys.executable]