Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4322)

Unified Diff: build/android/devil/devil_env.py

Issue 1583053002: [Android] Port chromium+devil to catapult+dependency_manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/devil/android/sdk/build_tools.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/devil/devil_env.py
diff --git a/build/android/devil/devil_env.py b/build/android/devil/devil_env.py
index efec60307fd35682f1e2dfb20fbb1521cce30cde..4caef32c9d112ae802d227f2cc11fe5cc9af674e 100644
--- a/build/android/devil/devil_env.py
+++ b/build/android/devil/devil_env.py
@@ -4,31 +4,28 @@
import contextlib
import json
-import logging
import os
import platform
import sys
import tempfile
import threading
-# TODO(jbudorick): Update this once dependency_manager moves to catapult.
-CATAPULT_BASE_PATH = os.path.abspath(os.path.join(
- os.path.dirname(__file__), os.pardir, os.pardir, os.pardir,
- 'tools', 'telemetry'))
+CATAPULT_ROOT_PATH = os.path.abspath(os.path.join(
+ os.path.dirname(__file__), '..', '..', '..', 'third_party', 'catapult'))
+DEPENDENCY_MANAGER_PATH = os.path.join(
+ CATAPULT_ROOT_PATH, 'dependency_manager')
@contextlib.contextmanager
def SysPath(path):
sys.path.append(path)
yield
if sys.path[-1] != path:
- logging.debug('Expected %s at the end of sys.path. Full sys.path: %s',
- path, str(sys.path))
sys.path.remove(path)
else:
sys.path.pop()
-with SysPath(CATAPULT_BASE_PATH):
- from catapult_base import dependency_manager # pylint: disable=import-error
+with SysPath(DEPENDENCY_MANAGER_PATH):
+ import dependency_manager # pylint: disable=import-error
_ANDROID_BUILD_TOOLS = {'aapt', 'dexdump', 'split-select'}
« no previous file with comments | « build/android/devil/android/sdk/build_tools.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698