Browse Source

Fix from forum user Akranar

rdb 17 years ago
parent
commit
89c0c5d5ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      doc/makepanda/makepandacore.py

+ 1 - 1
doc/makepanda/makepandacore.py

@@ -678,7 +678,7 @@ def SdkLocateMaya():
                         res = GetRegistryKey(fullkey, "MAYA_INSTALL_LOCATION")
                         res = GetRegistryKey(fullkey, "MAYA_INSTALL_LOCATION")
                         if (res != 0):
                         if (res != 0):
                             res = res.replace("\\", "/").rstrip("/")
                             res = res.replace("\\", "/").rstrip("/")
-                            SDK[res] = ver
+                            SDK[ver] = res
             elif (sys.platform == "darwin"):
             elif (sys.platform == "darwin"):
                 ddir1 = "sdks/"+ver.lower().replace("x","")+"-osx"
                 ddir1 = "sdks/"+ver.lower().replace("x","")+"-osx"
                 if os.environ.has_key("MAYA_LOCATION"): ddir2 = os.environ["MAYA_LOCATION"].rstrip("/")
                 if os.environ.has_key("MAYA_LOCATION"): ddir2 = os.environ["MAYA_LOCATION"].rstrip("/")