aboutsummaryrefslogtreecommitdiff
path: root/brunch/lib/tools/bdk_root.py
diff options
context:
space:
mode:
Diffstat (limited to 'brunch/lib/tools/bdk_root.py')
-rw-r--r--brunch/lib/tools/bdk_root.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/brunch/lib/tools/bdk_root.py b/brunch/lib/tools/bdk_root.py
deleted file mode 100644
index 4d5bc7e..0000000
--- a/brunch/lib/tools/bdk_root.py
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# Copyright (C) 2015 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-"""Finds the root of a bdk installation."""
-
-import os
-
-def BDKRoot():
- """Returns the directory at the top of the source tree."""
- path = os.path.realpath(__file__)
- # TODO(arihc)(b/24873929): adjust this function for when brunch
- # is external to the bdk.
- while not os.path.isdir(os.path.join(path, "tools/bdk")):
- (path, _) = os.path.split(path)
- return path
-
-def FromBDKRoot(path):
- """Returns an absolute path given a path relative to BDK root."""
- return os.path.join(BDKRoot(), path)