From e1a136a21e7b4bc4d102da2131a173c855c67962 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 5 Jan 2012 21:49:46 +0000 Subject: [PATCH] fix minor crash on input error --- direct/src/p3d/DeploymentTools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/direct/src/p3d/DeploymentTools.py b/direct/src/p3d/DeploymentTools.py index 2d8f14dea3..c52c7a7c6f 100644 --- a/direct/src/p3d/DeploymentTools.py +++ b/direct/src/p3d/DeploymentTools.py @@ -330,7 +330,7 @@ class Installer: # Load the p3d file to read out the required packages mf = Multifile() if not mf.openRead(p3dfile): - Installer.notify.error("Not a Panda3D application: %s" % (p3dFilename)) + Installer.notify.error("Not a Panda3D application: %s" % (p3dfile)) return # Now load the p3dInfo file. @@ -966,6 +966,8 @@ class Installer: self.notify.warning("Unable to invoke NSIS command.") nsifile.unlink() + # TODO: should empty hostDir here to clean up after ourselves. + return output def os_walk(self, top):