From 7803056ef2a17c5a706335bcd876d31baf614280 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 10 Jul 2019 11:17:32 -0700 Subject: run_unittests: use sys.executable on Windows for python Instead of trying to guess whether we need py or python3, and then falling over when whatever we guessed isn't in the path or isn't right, just use sys.executable which should always work. --- run_unittests.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/run_unittests.py b/run_unittests.py index 793e326..93c9083 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -5926,10 +5926,7 @@ class NativeFileTests(BasePlatformTests): # invokes our python wrapper batfile = os.path.join(self.builddir, 'binary_wrapper{}.bat'.format(self.current_wrapper)) with open(batfile, 'wt') as f: - if mesonbuild.environment.detect_msys2_arch(): - f.write(r'@python3 {} %*'.format(filename)) - else: - f.write('@{} {} %*'.format(sys.executable, filename)) + f.write(r'@{} {} %*'.format(sys.executable, filename)) return batfile def helper_for_compiler(self, lang, cb, for_machine = MachineChoice.HOST): -- cgit v1.1