From 30e2c680e70c1015483f9dacea8870e6c5ec7a6d Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 5 Sep 2012 07:21:26 +0000 Subject: [PATCH] keep .nsi file if nsis failed --- direct/src/p3d/DeploymentTools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/direct/src/p3d/DeploymentTools.py b/direct/src/p3d/DeploymentTools.py index f261ff2854..a99651bee9 100644 --- a/direct/src/p3d/DeploymentTools.py +++ b/direct/src/p3d/DeploymentTools.py @@ -1191,10 +1191,11 @@ class Installer: retcode = subprocess.call(cmd, shell = False) if retcode != 0: self.notify.warning("Failure invoking NSIS command.") + else: + nsifile.unlink() except OSError: self.notify.warning("Unable to invoke NSIS command.") - nsifile.unlink() if icofile is not None: icofile.unlink()