tools/mac/power/generate_scripts.py
def render_runner_scripts(extra_args):
  """Render all scenario driver scripts for all browsers (if applicable)."""

  # Generate all driver scripts from templates.
  for _, _, files in os.walk("./driver_scripts_templates"):
    for template_file in files:
      if not template_file.endswith(".scpt") and not template_file.endswith(
          ".swp"):
        if template_file.startswith("safari"):
          # Generate for Safari
          render("", template_file, "", extra_args)
        else:
          # Generate for all Chromium based browsers
          for browser in ['Chrome', 'Canary', "Chromium", "Edge"]:
            process_name = BROWSERS_DEFINITION[browser]["process_name"]
            render(browser, template_file, process_name, extra_args)
Render all scenario driver scripts for all browsers (if applicable).
Render all scenario driver scripts for all browsers (if applicable).
Render all scenario driver scripts for all browsers ( if applicable ) .
def render_runner_scripts(extra_args):
  for _, _, files in os.walk("./driver_scripts_templates"):
    for template_file in files:
      if not template_file.endswith(".scpt") and not template_file.endswith(
          ".swp"):
        if template_file.startswith("safari"):
          render("", template_file, "", extra_args)
        else:
          for browser in ['Chrome', 'Canary', "Chromium", "Edge"]:
            process_name = BROWSERS_DEFINITION[browser]["process_name"]
            render(browser, template_file, process_name, extra_args)
def render_runner_scripts ( extra_args ) : for _ , _ , files in os . walk ( "./driver_scripts_templates" ) : for template_file in files : if not template_file . endswith ( ".scpt" ) and not template_file . endswith ( ".swp" ) : if template_file . startswith ( "safari" ) : render ( "" , template_file , "" , extra_args ) else : for browser in [ 'Chrome' , 'Canary' , "Chromium" , "Edge" ] : process_name = BROWSERS_DEFINITION [ browser ] [ "process_name" ] render ( browser , template_file , process_name , extra_args )
Render all scenario driver scripts for all browsers (if applicable).
Render all scenario driver scripts for all browsers ( if applicable ) .
"""Render all scenario driver scripts for all browsers (if applicable).""" # Generate all driver scripts from templates. # Generate for Safari # Generate for all Chromium based browsers
extra_args