OSDN Git Service

Add system/core to the PYTHONPATH.
authorDan Albert <danalbert@google.com>
Mon, 27 Jul 2015 23:06:25 +0000 (16:06 -0700)
committerDan Albert <danalbert@google.com>
Fri, 31 Jul 2015 20:38:47 +0000 (13:38 -0700)
There's an adb Python interface now, and system/core needs to be in
the PYTHONPATH for `import adb` to find it.

Change-Id: I712767a2ba96cb017ce5857dc367e4cacf2ec51f

envsetup.sh

index 62802df..3c29e88 100644 (file)
@@ -198,6 +198,7 @@ function setpaths()
     fi
 
     export PATH=$ANDROID_BUILD_PATHS$PATH
+    export PYTHONPATH=$T/system/core:$PYTHONPATH
 
     unset ANDROID_JAVA_TOOLCHAIN
     unset ANDROID_PRE_BUILD_PATHS