How to use the gsutil.RunMain function in gsutil

To help you get started, we’ve selected a few gsutil examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github GoogleCloudPlatform / gsutil / test / gsutil_measure_imports.py View on Github external
def initialize():
  """Initializes gsutil."""
  sys.path.insert(0, os.path.abspath(os.path.join(sys.path[0], '..')))
  import gsutil  # pylint: disable=g-import-not-at-top
  atexit.register(print_sorted_initialization_times)
  gsutil.MEASURING_TIME_ACTIVE = True
  gsutil.RunMain()