Changeset 4805 for trunk/G2compare.py
- Timestamp:
- Feb 8, 2021 2:37:16 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/G2compare.py
r4801 r4805 888 888 Frame = main(application) # start the GUI 889 889 loadall = False 890 loadbak = False 890 891 argLoadlist = sys.argv[1:] 891 892 for arg in argLoadlist: 893 if '-d' in arg: 894 loadall = True 895 break 896 elif '-b' in arg: 897 loadbak = True 898 continue 899 elif '.bak' in os.path.splitext(arg)[0] and not loadbak: 900 continue 892 901 fil = os.path.splitext(arg)[0] + '.gpx' 893 902 if os.path.exists(fil): 903 if [fil,'GPX'] in Frame.fileList: 904 print('Skipping over {}: previously read'.format(fil)) 905 continue 894 906 Frame.fileList.append([fil,'GPX']) 895 907 Frame.loadFile(fil) 896 elif '-d' in arg: 897 loadall = True 908 continue 898 909 else: 899 910 print('File {} not found. Skipping'.format(fil))
Note: See TracChangeset
for help on using the changeset viewer.