You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_tools/recipes/recipe_modules/infra_paths/api.py

19 lines
614 B
Python

# Copyright 2016 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 recipe_engine import recipe_api
class InfraPathsApi(recipe_api.RecipeApi):
"""infra_paths module is glue for design mistakes. It will be removed."""
def initialize(self):
path_config = self.m.properties.get('path_config', 'generic')
self.m.path.set_config('infra_' + path_config)
@property
def default_git_cache_dir(self):
"""Returns the location of the default git cache directory."""
return self.m.path['git_cache']