Преглед на файлове

fix minor crash on input error

David Rose преди 14 години
родител
ревизия
e1a136a21e
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      direct/src/p3d/DeploymentTools.py

+ 3 - 1
direct/src/p3d/DeploymentTools.py

@@ -330,7 +330,7 @@ class Installer:
         # Load the p3d file to read out the required packages
         # Load the p3d file to read out the required packages
         mf = Multifile()
         mf = Multifile()
         if not mf.openRead(p3dfile):
         if not mf.openRead(p3dfile):
-            Installer.notify.error("Not a Panda3D application: %s" % (p3dFilename))
+            Installer.notify.error("Not a Panda3D application: %s" % (p3dfile))
             return
             return
 
 
         # Now load the p3dInfo file.
         # Now load the p3dInfo file.
@@ -966,6 +966,8 @@ class Installer:
             self.notify.warning("Unable to invoke NSIS command.")
             self.notify.warning("Unable to invoke NSIS command.")
 
 
         nsifile.unlink()
         nsifile.unlink()
+        # TODO: should empty hostDir here to clean up after ourselves.
+        
         return output
         return output
 
 
     def os_walk(self, top):
     def os_walk(self, top):