chrome/chrome_cleaner/tools/import_util.py
def AddProtosToPath(root_path):
  """Adds generated protobuf modules to the Python import path.

  Args:
    root_path: root directory where the pyproto subdir is located.
  """
  assert root_path is not None
  # Add the root pyproto dir so Python packages under that dir (such as
  # google.protobuf, which is built by //third_party/protobuf:py_proto) can be
  # imported with fully-qualified package names. (eg. "from google.protobuf
  # import text_format".)
  pyproto_dir = os.path.join(root_path, 'pyproto')
  AddImportPath(pyproto_dir)

  # Add individual directories with proto files that can be imported with bare
  # names. (eg. "import file_digest_pb2" to import file_digest.proto from the
  # chrome/chrome_cleaner/proto dir.)
  AddImportPath(os.path.join(pyproto_dir, 'chrome', 'chrome_cleaner', 'proto'))
  AddImportPath(os.path.join(pyproto_dir, 'chrome', 'chrome_cleaner', 'logging',
                             'proto'))
Adds generated protobuf modules to the Python import path.

  Args:
    root_path: root directory where the pyproto subdir is located.
  
Adds generated protobuf modules to the Python import path.
Adds generated protobuf modules to the Python import path .
def AddProtosToPath(root_path):
  assert root_path is not None
  pyproto_dir = os.path.join(root_path, 'pyproto')
  AddImportPath(pyproto_dir)
  AddImportPath(os.path.join(pyproto_dir, 'chrome', 'chrome_cleaner', 'proto'))
  AddImportPath(os.path.join(pyproto_dir, 'chrome', 'chrome_cleaner', 'logging',
                             'proto'))
def AddProtosToPath ( root_path ) : assert root_path is not None pyproto_dir = os . path . join ( root_path , 'pyproto' ) AddImportPath ( pyproto_dir ) AddImportPath ( os . path . join ( pyproto_dir , 'chrome' , 'chrome_cleaner' , 'proto' ) ) AddImportPath ( os . path . join ( pyproto_dir , 'chrome' , 'chrome_cleaner' , 'logging' , 'proto' ) )
Adds generated protobuf modules to the Python import path.
Adds generated protobuf modules to the Python import path .
"""Adds generated protobuf modules to the Python import path.

  Args:
    root_path: root directory where the pyproto subdir is located.
  """ # Add the root pyproto dir so Python packages under that dir (such as # google.protobuf, which is built by //third_party/protobuf:py_proto) can be # imported with fully-qualified package names. (eg. "from google.protobuf # import text_format".) # Add individual directories with proto files that can be imported with bare # names. (eg. "import file_digest_pb2" to import file_digest.proto from the # chrome/chrome_cleaner/proto dir.)
root_path
root directory where the pyproto subdir is located.
root directory where the pyproto subdir is located .