Changeset 108

Show
Ignore:
Timestamp:
10/02/07 20:05:22 (1 year ago)
Author:
vud1
Message:

"Close 25"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pytrainer/trunk/pytrainer/extensions/googlemaps.py

    r94 r108  
    4343                cachefile = extensiondir+"/%d.gpx" %id_record 
    4444                if not os.path.isfile(cachefile): 
    45                         trackdistance = "100
     45                        trackdistance = "10
    4646                        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) 
    4849 
    4950                gpx = Gpx(self.data_path,cachefile)