summaryrefslogtreecommitdiffstats
path: root/Mac/Tools
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-02-16 21:28:51 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-02-16 21:28:51 (GMT)
commitfd3e54c68e60719dad954be87e06fa5353ba47e9 (patch)
tree248dbfa59ca2487860e98b4d4232e354065d3f3c /Mac/Tools
parent97dede0202b1e961bdbe19f7181e0e6652988dae (diff)
downloadcpython-fd3e54c68e60719dad954be87e06fa5353ba47e9.zip
cpython-fd3e54c68e60719dad954be87e06fa5353ba47e9.tar.gz
cpython-fd3e54c68e60719dad954be87e06fa5353ba47e9.tar.bz2
When building an applet clear out the tempfile and dir afterwards.
Diffstat (limited to 'Mac/Tools')
-rw-r--r--Mac/Tools/IDE/PyEdit.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Mac/Tools/IDE/PyEdit.py b/Mac/Tools/IDE/PyEdit.py
index 7212622..e9e0f26 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()