Changeset 150
- Timestamp:
- 01/13/08 15:16:46 (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
r141 r150 30 30 dummy = 0 31 31 32 if not os.path.exists(options.device): 32 33 try: 34 os.system("gpsbabel -t -i garmin -f %s -o gtrnctr -F /tmp/file.gtrnctr" %options.device) 35 dummy = 1 36 except: 33 37 f = os.popen("zenity --error --text='Cant open garmin device. Check your configuration or connect the device correctly.'"); 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 38 dummy = 0 42 39 43 40 if dummy == 1:
