Clean up after downloading GPS data
authorRory McCann <rory@athena.(none)>
Wed, 13 Aug 2008 16:58:45 +0000 (13 17:58 +0100)
committerRory McCann <rory@athena.(none)>
Wed, 13 Aug 2008 16:58:45 +0000 (13 17:58 +0100)
osm.py

diff --git a/osm.py b/osm.py
index b779ba1..65ad98d 100755 (executable)
--- a/osm.py
+++ b/osm.py
@@ -204,6 +204,7 @@ class GPSData(object):
             urllib.urlretrieve(url % page, filename=tmpfilename )
             old_points_total = sum(len(way.nodes) for way in self.tracks)
             self._parse_file(tmpfilename)
+            os.remove(tmpfilename)
             point_last_time = sum(len(way.nodes) for way in self.tracks) - old_points_total
             page += 1