third_party/google_input_tools/update.py
def copy_dir(input_path, sub_dir):
  """Copies all files in a subdirectory of google-input-tools.

  Description:
    Recursive copy of a directory under google-input-tools.  Used to copy
    localization and resource files.

  Args:
    input_path: Path to the google-input-tools-sandbox.
    sub_dir: Subdirectory to copy within google-input-tools sandbox.
  """
  source_dir = os.path.join(input_path, 'chrome', 'os', sub_dir)
  for (root, _, files) in os.walk(source_dir):
    for name in files:
      filename = os.path.join(root, name)
      relative_path = filename[len(source_dir) + 1:]
      target = os.path.join('src', 'chrome', 'os', sub_dir,
                            relative_path)
      copy_file(filename, target)
Copies all files in a subdirectory of google-input-tools.

  Description:
    Recursive copy of a directory under google-input-tools.  Used to copy
    localization and resource files.

  Args:
    input_path: Path to the google-input-tools-sandbox.
    sub_dir: Subdirectory to copy within google-input-tools sandbox.
  
Copies all files in a subdirectory of google-input-tools.
Description:
Recursive copy of a directory under google-input-tools.  Used to copy
localization and resource files.
Copies all files in a subdirectory of google - input - tools . Description : Recursive copy of a directory under google - input - tools . Used to copy localization and resource files .
def copy_dir(input_path, sub_dir):
  source_dir = os.path.join(input_path, 'chrome', 'os', sub_dir)
  for (root, _, files) in os.walk(source_dir):
    for name in files:
      filename = os.path.join(root, name)
      relative_path = filename[len(source_dir) + 1:]
      target = os.path.join('src', 'chrome', 'os', sub_dir,
                            relative_path)
      copy_file(filename, target)
def copy_dir ( input_path , sub_dir ) : source_dir = os . path . join ( input_path , 'chrome' , 'os' , sub_dir ) for ( root , _ , files ) in os . walk ( source_dir ) : for name in files : filename = os . path . join ( root , name ) relative_path = filename [ len ( source_dir ) + 1 : ] target = os . path . join ( 'src' , 'chrome' , 'os' , sub_dir , relative_path ) copy_file ( filename , target )
Copies all files in a subdirectory of google-input-tools.
Copies all files in a subdirectory of google - input - tools .
"""Copies all files in a subdirectory of google-input-tools.

  Description:
    Recursive copy of a directory under google-input-tools.  Used to copy
    localization and resource files.

  Args:
    input_path: Path to the google-input-tools-sandbox.
    sub_dir: Subdirectory to copy within google-input-tools sandbox.
  """
input_path
Path to the google-input-tools-sandbox.
Path to the google - input - tools - sandbox .
sub_dir
Subdirectory to copy within google-input-tools sandbox.
Subdirectory to copy within google - input - tools sandbox .