From: Jack Jansen Date: Sun, 16 Feb 2003 21:28:51 +0000 (+0000) Subject: When building an applet clear out the tempfile and dir afterwards. X-Git-Tag: v2.3c1~1831 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd3e54c68e60719dad954be87e06fa5353ba47e9;p=python When building an applet clear out the tempfile and dir afterwards. --- diff --git a/Mac/Tools/IDE/PyEdit.py b/Mac/Tools/IDE/PyEdit.py index 7212622445..e9e0f26f17 100644 --- a/Mac/Tools/IDE/PyEdit.py +++ b/Mac/Tools/IDE/PyEdit.py @@ -472,6 +472,11 @@ class Editor(W.Window): pass template = buildtools.findtemplate() buildtools.process(template, filename, destname, rsrcname=rsrcname, progress=None) + try: + os.remove(filename) + os.rmdir(tmpdir) + except os.error: + pass def domenu_gotoline(self, *args): self.linefield.selectall()