Changeset 150

Show
Ignore:
Timestamp:
01/13/08 15:16:46 (1 year ago)
Author:
vud1
Message:

"solved lars bug reported"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pytrainer/trunk/plugins/garmin-hr/main.py

    r141 r150  
    3030dummy = 0 
    3131 
    32 if not os.path.exists(options.device): 
     32 
     33try: 
     34        os.system("gpsbabel -t -i garmin -f %s -o gtrnctr -F /tmp/file.gtrnctr" %options.device) 
     35        dummy = 1 
     36except: 
    3337        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 
    4239 
    4340if dummy == 1: