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

Unified Diff: go/mobile_env.py

Issue 2247983002: Add support for a whitelist of supported platforms for a CIPD package. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Comments + mobile_env.py cwd fix. Created 4 years, 4 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/packages/device_watchdog.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/mobile_env.py
diff --git a/go/mobile_env.py b/go/mobile_env.py
index 6a31d9c98bb5a3f0e4fb3e6356887fa3ab167c0d..67fb609b5970ce1d1c20026c9c919ffa5527c1a0 100755
--- a/go/mobile_env.py
+++ b/go/mobile_env.py
@@ -59,9 +59,10 @@ def _get_android_env(env):
# Run `gomobile init` to fetch the android NDK.
+cwd = os.path.dirname(os.path.realpath(__file__))
if not os.path.exists(ANDROID_NDK_PATH):
cmd = [sys.executable, 'env.py', 'gomobile', 'init']
- subprocess.check_call(cmd)
+ subprocess.check_call(cmd, cwd=cwd)
# Keep track of any changed env vars for printing to stdout later.
old = os.environ.copy()
« no previous file with comments | « build/packages/device_watchdog.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698