import re


def convert_paths(files):
  """
  Converts '\' character in Windows paths to '/'. This method is only executed when script is running on Windows environment.

  Args:
      files: a dictionary containing full paths and their project paths (in Windows style).

  Returns:
      files: a dictionary containing full paths and their project paths (in UNIX style).

  """
  for key, value in files.items():
    x = re.sub('\\\\', '/', value)
    files[key] = x
  return files