| 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()
|
|
|