]> granicus.if.org Git - python/commitdiff
When building an applet clear out the tempfile and dir afterwards.
authorJack Jansen <jack.jansen@cwi.nl>
Sun, 16 Feb 2003 21:28:51 +0000 (21:28 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sun, 16 Feb 2003 21:28:51 +0000 (21:28 +0000)
Mac/Tools/IDE/PyEdit.py

index 7212622445b36992cb3468d7a0401b649298652d..e9e0f26f17df615c736874015b8cf87c9ac548f1 100644 (file)
@@ -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()