tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

output_manager_factory.py (579B)


      1 # Copyright 2017 The Chromium Authors
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 
      6 from pylib import constants
      7 from pylib.output import local_output_manager
      8 from pylib.output import remote_output_manager
      9 from pylib.utils import local_utils
     10 
     11 
     12 def CreateOutputManager(args):
     13  if args.local_output or not local_utils.IsOnSwarming():
     14    return local_output_manager.LocalOutputManager(
     15        output_dir=constants.GetOutDirectory())
     16  return remote_output_manager.RemoteOutputManager(
     17      bucket=args.gs_results_bucket)