diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-01-14 13:46:59 +0530 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2020-01-14 10:52:40 -0500 |
commit | 64432e94481dbd55bedf92f21610bc5ed6b52655 (patch) | |
tree | 0a1b416328c681e471e2ca49a25d02290d3da748 /run_unittests.py | |
parent | 71bbcc76696e303dfe184ad57e76387a322e8f43 (diff) | |
download | meson-64432e94481dbd55bedf92f21610bc5ed6b52655.zip meson-64432e94481dbd55bedf92f21610bc5ed6b52655.tar.gz meson-64432e94481dbd55bedf92f21610bc5ed6b52655.tar.bz2 |
find_program: Ignore programs in the WindowsApps directory
The latest Windows 10 release in May 2019 added zero-sized files that
act as stubs which when launched from cmd.exe spawn the Windows Store
to install those apps. This also includes python.exe and python3.exe:
https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update/
Unfortunately, `import('python').find_installation('python3')` will
then think that python3.exe is available on Windows. Or, worse, if the
user has a fresh installation of Windows 10 and then installs the
Python 3 using the official installer (not the Windows Store app), we
will *still* pickup this stub because it will be first in `PATH`.
Always remove the WindowsApps directory from `PATH` while searching.
First reported at https://gitlab.freedesktop.org/gstreamer/cerbero/issues/223
Diffstat (limited to 'run_unittests.py')
0 files changed, 0 insertions, 0 deletions