Merge "Use python libraries that NDK provides instead of host system's."
diff --git a/build/tools/make-standalone-toolchain.sh b/build/tools/make-standalone-toolchain.sh
index 378502e..9264005 100755
--- a/build/tools/make-standalone-toolchain.sh
+++ b/build/tools/make-standalone-toolchain.sh
@@ -265,6 +265,7 @@
     echo '  shift'
     echo 'done'
     echo 'test -z "$output" && output=a.out'
+    echo 'export PYTHONPATH=`dirname $0`/../lib/python2.7/'
     echo '`dirname $0`/python `dirname $0`/ndk-bc2native.py --sysroot=`dirname $0`/../sysroot --abi='$TARGET_ABI' --platform='$PLATFORM' --file $output $output'
   else
     echo 'rem Call bc2native if needed'
@@ -284,6 +285,7 @@
     echo '  if not "%output%" == "" goto :check_done'
     echo '  set output=a.out'
     echo ':check_done'
+    echo 'set PYTHONPATH=%~dp0\\..\\lib\\python2.7\\'
     echo '%~dp0\\python'$HOST_EXE' %~dp0\\ndk-bc2native.py --sysroot=%~dp0\\..\\sysroot --abi='$TARGET_ABI' --platform='$PLATFORM' --file %output% %output%'
   fi
 }