Browse Source

Fixed a packpanda bug

Josh Yelon 20 years ago
parent
commit
a5bb442960
2 changed files with 5 additions and 9 deletions
  1. 2 7
      direct/src/directscripts/packpanda.nsi
  2. 3 2
      direct/src/directscripts/packpanda.py

+ 2 - 7
direct/src/directscripts/packpanda.nsi

@@ -90,8 +90,9 @@ Section "${SMDIRECTORY}" SecCore
         File /r ${PANDA}\etc\*
         File /r ${PANDA}\etc\*
         SetOutPath $INSTDIR\direct
         SetOutPath $INSTDIR\direct
         File /r /x CVS /x Opt?-Win32 ${PSOURCE}\direct\*.py
         File /r /x CVS /x Opt?-Win32 ${PSOURCE}\direct\*.py
-        File /r /x CVS /x Opt?-Win32 ${PSOURCE}\direct\src\directscripts\*
         File ${PANDA}\direct\__init__.py
         File ${PANDA}\direct\__init__.py
+        SetOutPath $INSTDIR\direct\src\directscripts
+        File /r /x CVS /x Opt?-Win32 ${PSOURCE}\direct\src\directscripts\*
         SetOutPath $INSTDIR\pandac
         SetOutPath $INSTDIR\pandac
         File /r ${PANDA}\pandac\*.py
         File /r ${PANDA}\pandac\*.py
         SetOutPath $INSTDIR\python
         SetOutPath $INSTDIR\python
@@ -205,12 +206,6 @@ Section -post
         Call AddToPath
         Call AddToPath
         !endif
         !endif
 
 
-        DetailPrint "Registering Helix Preferences..."
-        WriteRegStr HKLM "Software\Helix\HelixSDK\10.0\Preferences\UseOverlay" "" "0"
-        WriteRegStr HKLM "Software\Helix\HelixSDK\10.0\Preferences\UseWinDraw" "" "0"
-        WriteRegStr HKCU "Software\Helix\HelixSDK\10.0\Preferences\UseOverlay" "" "0"
-        WriteRegStr HKCU "Software\Helix\HelixSDK\10.0\Preferences\UseWinDraw" "" "0"
-
         DetailPrint "Adding the uninstaller ..."
         DetailPrint "Adding the uninstaller ..."
         Delete "$INSTDIR\uninst.exe"
         Delete "$INSTDIR\uninst.exe"
         WriteUninstaller "$INSTDIR\uninst.exe"
         WriteUninstaller "$INSTDIR\uninst.exe"

+ 3 - 2
direct/src/directscripts/packpanda.py

@@ -69,12 +69,13 @@ OPTIONS = ParseOptions(sys.argv[1:])
 
 
 PANDA=None
 PANDA=None
 for dir in sys.path:
 for dir in sys.path:
-    if os.path.exists(os.path.join(dir,"direct")) and os.path.exists(os.path.join(dir,"pandac")) and os.path.exists(os.path.join(dir,"python")):
+    if (dir != "") and os.path.exists(os.path.join(dir,"direct")) and os.path.exists(os.path.join(dir,"pandac")) and os.path.exists(os.path.join(dir,"python")) and os.path.exists(os.path.join(dir,"nsis")):
         PANDA=os.path.abspath(dir)
         PANDA=os.path.abspath(dir)
 if (PANDA is None):
 if (PANDA is None):
   sys.exit("Cannot locate the panda root directory in the python path (cannot locate directory containing direct and pandac).")
   sys.exit("Cannot locate the panda root directory in the python path (cannot locate directory containing direct and pandac).")
+print "PANDA located at "+PANDA
 
 
-if (os.path.exists(os.path.join("PANDA","..","makepanda","makepanda.py"))) and (os.path.exists(os.path.join("PANDA","..","thirdparty","win-nsis","makensis.exe"))):
+if (os.path.exists(os.path.join(PANDA,"..","makepanda","makepanda.py"))) and (os.path.exists(os.path.join(PANDA,"..","thirdparty","win-nsis","makensis.exe"))):
   PSOURCE=os.path.abspath(os.path.join(PANDA,".."))
   PSOURCE=os.path.abspath(os.path.join(PANDA,".."))
   NSIS=os.path.abspath(os.path.join(PANDA,"..","thirdparty","win-nsis"))
   NSIS=os.path.abspath(os.path.join(PANDA,"..","thirdparty","win-nsis"))
 else:
 else: