\r
def _get_vs_install_path(self, vs_version, varname):\r
# check if already specified\r
- path = shell_environment.GetEnvironment().get_shell_var(varname)\r
+ path = None\r
+ if varname is not None:\r
+ path = shell_environment.GetEnvironment().get_shell_var(varname)\r
+\r
if(path is None):\r
# Not specified...find latest\r
- (rc, path) = FindWithVsWhere(vs_version=vs_version)\r
- if rc == 0 and path is not None and os.path.exists(path):\r
+ try:\r
+ path = FindWithVsWhere(vs_version=vs_version)\r
+ except (EnvironmentError, ValueError, RuntimeError) as e:\r
+ self.Logger.error(str(e))\r
+ return None\r
+\r
+ if path is not None and os.path.exists(path):\r
self.Logger.debug("Found VS instance for %s", vs_version)\r
else:\r
self.Logger.error(\r
- "Failed to find VS instance with VsWhere (%d)" % rc)\r
+ f"VsWhere successfully executed, but could not find VS instance for {vs_version}.")\r
return path\r
\r
def _get_vc_version(self, path, varname):\r
# https://www.python.org/dev/peps/pep-0440/#version-specifiers\r
##\r
\r
-edk2-pytool-library==0.12.1\r
-edk2-pytool-extensions~=0.20.0\r
+edk2-pytool-library==0.14.0\r
+edk2-pytool-extensions~=0.21.8\r
edk2-basetools==0.1.39\r
antlr4-python3-runtime==4.7.1\r
lcov-cobertura==2.0.2\r