i18n/mki18n.py
changeset 1828 396da88d7b5c
parent 1826 91796f408540
child 1832 0f1081928d65
equal deleted inserted replaced
1827:b8b47f9b5e56 1828:396da88d7b5c
   465         optionList, pargs = getopt.getopt(sys.argv[1:], validOptions, validLongOptions)
   465         optionList, pargs = getopt.getopt(sys.argv[1:], validOptions, validLongOptions)
   466     except getopt.GetoptError, e:
   466     except getopt.GetoptError, e:
   467         printUsage(e[0])
   467         printUsage(e[0])
   468         sys.exit(1)
   468         sys.exit(1)
   469     for (opt, val) in optionList:
   469     for (opt, val) in optionList:
   470         if (opt == '-h'):
   470         if opt == '-h':
   471             printUsage()
   471             printUsage()
   472             sys.exit(0)
   472             sys.exit(0)
   473         option[optionKey[opt]] = 1 if val == '' else val
   473         option[optionKey[opt]] = 1 if val == '' else val
   474     if len(pargs) == 0:
   474     if len(pargs) == 0:
   475         appDirPath = os.getcwd()
   475         appDirPath = os.getcwd()