tools/site_compare/commands/maskmaker.py
def ValidateMaskmaker(command):
  """Validate the arguments to maskmaker. Raises ParseError if failed."""
  executables = [".exe", ".com", ".bat"]
  if command["--browserpath"]:
    if os.path.splitext(command["--browserpath"])[1].lower() not in executables:
      raise command_line.ParseError("Browser filename must be an executable")
Validate the arguments to maskmaker. Raises ParseError if failed.
Validate the arguments to maskmaker. Raises ParseError if failed.
Validate the arguments to maskmaker . Raises ParseError if failed .
def ValidateMaskmaker(command):
  executables = [".exe", ".com", ".bat"]
  if command["--browserpath"]:
    if os.path.splitext(command["--browserpath"])[1].lower() not in executables:
      raise command_line.ParseError("Browser filename must be an executable")
def ValidateMaskmaker ( command ) : executables = [ ".exe" , ".com" , ".bat" ] if command [ "--browserpath" ] : if os . path . splitext ( command [ "--browserpath" ] ) [ 1 ] . lower ( ) not in executables : raise command_line . ParseError ( "Browser filename must be an executable" )
Validate the arguments to maskmaker.
Validate the arguments to maskmaker .
"""Validate the arguments to maskmaker. Raises ParseError if failed."""
command