Changeset 141
- Timestamp:
- 01/10/08 20:43:31 (1 year ago)
- Files:
-
- pytrainer/trunk/plugins/garmin-hr/main.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pytrainer/trunk/plugins/garmin-hr/main.py
r134 r141 29 29 tmpgpx = "/tmp/reg.gpx" 30 30 dummy = 0 31 try: 32 os.system("gpsbabel -t -i garmin -f %s -o gtrnctr -F /tmp/file.gtrnctr" %options.device) 33 dummy = 1 34 except: 31 32 if not os.path.exists(options.device): 35 33 f = os.popen("zenity --error --text='Cant open garmin device. Check your configuration or connect the device correctly.'"); 36 dummy = 0 34 35 else : 36 try: 37 os.system("gpsbabel -t -i garmin -f %s -o gtrnctr -F /tmp/file.gtrnctr" %options.device) 38 dummy = 1 39 except: 40 f = os.popen("zenity --error --text='Cant open garmin device. Check your configuration or connect the device correctly.'"); 41 dummy = 0 37 42 38 43 if dummy == 1:
