summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/mesonmain.py2
-rwxr-xr-xrun_meson_command_tests.py3
2 files changed, 2 insertions, 3 deletions
diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py
index 061cde9b0..72a7ab945 100644
--- a/mesonbuild/mesonmain.py
+++ b/mesonbuild/mesonmain.py
@@ -290,7 +290,7 @@ def main():
assert os.path.isabs(sys.executable)
launcher = sys.executable
else:
- launcher = os.path.realpath(sys.argv[0])
+ launcher = os.path.abspath(sys.argv[0])
return run(sys.argv[1:], launcher)
if __name__ == '__main__':
diff --git a/run_meson_command_tests.py b/run_meson_command_tests.py
index 040105a2d..093d6ea9e 100755
--- a/run_meson_command_tests.py
+++ b/run_meson_command_tests.py
@@ -135,8 +135,7 @@ class CommandTests(unittest.TestCase):
(bindir / 'python3').symlink_to(python_command[0])
os.environ['PATH'] = str(bindir) + os.pathsep + os.environ['PATH']
# use our overridden PATH-compatible python
- path_resolved_meson_command = resolved_meson_command.copy()
- path_resolved_meson_command[0] = str(bindir / 'python3')
+ path_resolved_meson_command = [str(bindir / 'meson')]
# See if it works!
meson_py = 'meson'
meson_setup = [meson_py, 'setup']