diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-02-16 21:28:51 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-02-16 21:28:51 (GMT) |
commit | fd3e54c68e60719dad954be87e06fa5353ba47e9 (patch) | |
tree | 248dbfa59ca2487860e98b4d4232e354065d3f3c /Mac/Tools | |
parent | 97dede0202b1e961bdbe19f7181e0e6652988dae (diff) | |
download | cpython-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.py | 5 |
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() |