Remove unnecessary check during VS activation

pull/9939/head
Nazar Mokrynskyi 3 years ago committed by Xavier Claessens
parent 9a1a5c2b74
commit 44e7f75cc3
  1. 2
      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:

Loading…
Cancel
Save