naiveproxy/build/android/pylib/base/output_manager_factory.py

17 lines
542 B
Python
Raw Normal View History

2018-08-15 01:19:20 +03:00
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from pylib import constants
from pylib.output import local_output_manager
from pylib.output import remote_output_manager
def CreateOutputManager(args):
if args.local_output:
return local_output_manager.LocalOutputManager(
output_dir=constants.GetOutDirectory())
else:
return remote_output_manager.RemoteOutputManager(
bucket=args.gs_results_bucket)