Changeset 7298
- Timestamp:
- Jul 3, 2009, 3:30:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/tools/update_lic_checksum/create_lic_file.py
r7276 r7298 28 28 <filename></filename> 29 29 <checksum>-1</checksum> 30 <publishable>Y </publishable>30 <publishable>Yes</publishable> 31 31 <accountable>ANUGA developer</accountable> 32 32 <source>Generated by ANUGA development team</source> … … 36 36 37 37 ''' 38 39 # dictionary to map yes/no chars to a string 40 YesNoDict = {'y': 'Yes', 41 'n': 'No'} 38 42 39 43 … … 162 166 arg_author = opt_arg 163 167 elif opt in ['-p', '--publishable']: 164 arg_publishable = opt_arg.title() 168 try: 169 arg_publishable = YesNoDict[opt_arg.lower()[0]] 170 except KeyError: 171 print("Bad %s arg: '%s' " 172 "(expected a string starting 'y', 'n', 'Y' or 'N')" 173 % (opt, opt_arg)) 165 174 elif opt in ['-a', '--accountable']: 166 175 arg_accountable = opt_arg
Note: See TracChangeset
for help on using the changeset viewer.