Changeset 119
- Timestamp:
- 10/30/07 19:54:55 (1 year ago)
- Files:
-
- pytrainer/trunk/mozpytrainer.sh (modified) (1 diff)
- pytrainer/trunk/pytrainer/extensions/googlemaps.py (modified) (1 diff)
- pytrainer/trunk/pytrainer/lib/gpx.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pytrainer/trunk/mozpytrainer.sh
r39 r119 1 1 #/bin/sh 2 2 3 LD_LIBRARY_PATH=/usr/lib/firefox python pytrainer.py3 LD_LIBRARY_PATH=/usr/lib/firefox MOZILLA_FIVE_HOME=/usr/lib/firefox python pytrainer.py pytrainer/trunk/pytrainer/extensions/googlemaps.py
r108 r119 43 43 cachefile = extensiondir+"/%d.gpx" %id_record 44 44 if not os.path.isfile(cachefile): 45 trackdistance = "10 "45 trackdistance = "100" 46 46 gpxfile = self.conf.getValue("gpxdir")+"/%s.gpx" %id_record 47 47 os.system("gpsbabel -t -i gpx -f '%s' -x position,distance=%sm -o gpx -F %s" %(gpxfile,trackdistance,cachefile)) pytrainer/trunk/pytrainer/lib/gpx.py
r107 r119 65 65 stylefile = self.data_path+"pytrainer.style" 66 66 tmpfile = self.conf.getValue("tmpdir")+"/gps.txt" 67 os.system("gpsbabel -t -i gpx -f '%s' -x position,distance=1 m -o xcsv,style=%s -F %s" %(self.filename, stylefile,tmpfile))67 os.system("gpsbabel -t -i gpx -f '%s' -x position,distance=100m -o xcsv,style=%s -F %s" %(self.filename, stylefile,tmpfile)) 68 68 return tmpfile 69 69
