Changeset 108
- Timestamp:
- 10/02/07 20:05:22 (1 year ago)
- Files:
-
- pytrainer/trunk/pytrainer/extensions/googlemaps.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pytrainer/trunk/pytrainer/extensions/googlemaps.py
r94 r108 43 43 cachefile = extensiondir+"/%d.gpx" %id_record 44 44 if not os.path.isfile(cachefile): 45 trackdistance = "10 0"45 trackdistance = "10" 46 46 gpxfile = self.conf.getValue("gpxdir")+"/%s.gpx" %id_record 47 os.system("gpsbabel -t -i gpx -f %s -x position,distance=%sm -o gpx -F %s" %(gpxfile,trackdistance,cachefile)) 47 os.system("gpsbabel -t -i gpx -f '%s' -x position,distance=%sm -o gpx -F %s" %(gpxfile,trackdistance,cachefile)) 48 print "gpsbabel -t -i gpx -f '%s' -x position,distance=%sm -o gpx -F %s" %(gpxfile,trackdistance,cachefile) 48 49 49 50 gpx = Gpx(self.data_path,cachefile)
