i18n/mki18n.py
changeset 1919 ccea0fa6ea91
parent 1881 091005ec69c4
child 2350 9f7028ab8294
equal deleted inserted replaced
1918:e7b6478b4ebc 1919:ccea0fa6ea91
   437 
   437 
   438 # S c r i p t   e x e c u t i o n               -- Runs when invoked from the command line --
   438 # S c r i p t   e x e c u t i o n               -- Runs when invoked from the command line --
   439 # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   439 # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   440 #
   440 #
   441 if __name__ == "__main__":
   441 if __name__ == "__main__":
   442     import getopt     # command line parsing
   442     # command line parsing
       
   443     import getopt    # pylint: disable=wrong-import-order,wrong-import-position
   443     argc = len(sys.argv)
   444     argc = len(sys.argv)
   444     if argc == 1:
   445     if argc == 1:
   445         printUsage('Missing argument: specify at least one of -m or -p (or both).')
   446         printUsage('Missing argument: specify at least one of -m or -p (or both).')
   446         sys.exit(1)
   447         sys.exit(1)
   447     # If there is some arguments, parse the command line
   448     # If there is some arguments, parse the command line