diff --git a/var/spack/repos/builtin/packages/libtheora/package.py b/var/spack/repos/builtin/packages/libtheora/package.py index cf765402a27..64fcd5d3da1 100644 --- a/var/spack/repos/builtin/packages/libtheora/package.py +++ b/var/spack/repos/builtin/packages/libtheora/package.py @@ -88,7 +88,7 @@ def setup_build_environment(self, env): # devenv is needed to convert ancient MSbuild project to modern # msbuild project so MSBuild versions older than 2010 can build this # project - devenv_path = os.path.join(self["msvc"].vs_root, "Common7", "IDE") + devenv_path = os.path.join(self.pkg["msvc"].vs_root, "Common7", "IDE") env.prepend_path("PATH", devenv_path) @property