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

Unified Diff: build/android/devil/env/dependency_config.py

Issue 1316413003: [Android] Add a configurable environment for devil/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
Index: build/android/devil/env/dependency_config.py
diff --git a/build/android/devil/env/dependency_config.py b/build/android/devil/env/dependency_config.py
new file mode 100644
index 0000000000000000000000000000000000000000..5d2f696fe03d2575cb41a3d744d8b6ee565dbd54
--- /dev/null
+++ b/build/android/devil/env/dependency_config.py
@@ -0,0 +1,18 @@
+# Copyright 2015 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.
+
+import os
+
+from devil.env import env_config
+
+DEVIL_PYMOCK_PATH = 'DEVIL_PYMOCK_PATH'
+
+
+class DependencyConfig(env_config.EnvConfig):
+
+ @property
+ def pymock_path(self):
+ return (self._configured.get('pymock_path')
+ or os.environ.get(DEVIL_PYMOCK_PATH))
+

Powered by Google App Engine
This is Rietveld 408576698