From 80137002455ed6a8cfc1c8a23f97990dd629fa71 Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Mon, 27 Jun 2005 20:13:03 +0000 Subject: [PATCH] Fixed 1.0.5 bug --- doc/makepanda/makepanda.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/makepanda/makepanda.py b/doc/makepanda/makepanda.py index e7c924be37..d8b11db14f 100755 --- a/doc/makepanda/makepanda.py +++ b/doc/makepanda/makepanda.py @@ -724,8 +724,8 @@ def AddToVisualStudioPath(path,add): def LocateVisualStudio(): # Try to use the Visual Toolkit 2003 - vcdir = os.environ["VCTOOLKITINSTALLDIR"] - if (vcdir != 0): + if (os.environ.has_key["VCTOOLKITINSTALLDIR"]): + vcdir = os.environ["VCTOOLKITINSTALLDIR"] platsdk=GetRegistryKey("SOFTWARE\\Microsoft\\MicrosoftSDK\\InstalledSDKs\\8F9E5EF3-A9A5-491B-A889-C58EFFECE8B3", "Install Dir") if (platsdk == 0): sys.exit("Found VC Toolkit, but cannot locate MS Platform SDK")