From 44e7f75cc359f66f3fe696d3851394d7cf31aeb9 Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Mon, 31 Jan 2022 00:12:53 +0200 Subject: Remove unnecessary check during VS activation --- mesonbuild/mesonlib/vsenv.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/mesonbuild/mesonlib/vsenv.py b/mesonbuild/mesonlib/vsenv.py index fcb0c42..b359025 100644 --- a/mesonbuild/mesonlib/vsenv.py +++ b/mesonbuild/mesonlib/vsenv.py @@ -27,8 +27,6 @@ def _setup_vsenv(force: bool) -> bool: if os.environ.get('OSTYPE') == 'cygwin': return False if 'MESON_FORCE_VSENV_FOR_UNITTEST' not in os.environ: - if 'Visual Studio' in os.environ['PATH']: - return False # VSINSTALL is set when running setvars from a Visual Studio installation # Tested with Visual Studio 2012 and 2017 if 'VSINSTALLDIR' in os.environ: -- cgit v1.1