Browse Source

Fixed 1.0.5 bug

Josh Yelon 20 years ago
parent
commit
8013700245
1 changed files with 2 additions and 2 deletions
  1. 2 2
      doc/makepanda/makepanda.py

+ 2 - 2
doc/makepanda/makepanda.py

@@ -724,8 +724,8 @@ def AddToVisualStudioPath(path,add):
 def LocateVisualStudio():
 def LocateVisualStudio():
 
 
     # Try to use the Visual Toolkit 2003
     # 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",
         platsdk=GetRegistryKey("SOFTWARE\\Microsoft\\MicrosoftSDK\\InstalledSDKs\\8F9E5EF3-A9A5-491B-A889-C58EFFECE8B3",
                                "Install Dir")
                                "Install Dir")
         if (platsdk == 0): sys.exit("Found VC Toolkit, but cannot locate MS Platform SDK")
         if (platsdk == 0): sys.exit("Found VC Toolkit, but cannot locate MS Platform SDK")