third_party/google_input_tools/update.py
def copy_file(source, target):
  """Copies a file from the source to the target location.

  Args:
    source: Path to the source file to copy.
    target: Path to the target location to copy the file.
  """

  if not os.path.exists(os.path.dirname(target)):
    os.makedirs(os.path.dirname(target))
  shutil.copy(source, target)
  # Ensure correct file permissions.
  if target.endswith('py'):
    subprocess.call(['chmod', '+x', target])
  else:
    subprocess.call(['chmod', '-x', target])
Copies a file from the source to the target location.

  Args:
    source: Path to the source file to copy.
    target: Path to the target location to copy the file.
  
Copies a file from the source to the target location.
Copies a file from the source to the target location .
def copy_file(source, target):
  if not os.path.exists(os.path.dirname(target)):
    os.makedirs(os.path.dirname(target))
  shutil.copy(source, target)
  if target.endswith('py'):
    subprocess.call(['chmod', '+x', target])
  else:
    subprocess.call(['chmod', '-x', target])
def copy_file ( source , target ) : if not os . path . exists ( os . path . dirname ( target ) ) : os . makedirs ( os . path . dirname ( target ) ) shutil . copy ( source , target ) if target . endswith ( 'py' ) : subprocess . call ( [ 'chmod' , '+x' , target ] ) else : subprocess . call ( [ 'chmod' , '-x' , target ] )
Copies a file from the source to the target location.
Copies a file from the source to the target location .
"""Copies a file from the source to the target location.

  Args:
    source: Path to the source file to copy.
    target: Path to the target location to copy the file.
  """ # Ensure correct file permissions.
source
Path to the source file to copy.
Path to the source file to copy .
target
Path to the target location to copy the file.
Path to the target location to copy the file .