Skip to content

Commit

Permalink
fix script problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuri65536 committed Mar 16, 2017
1 parent 70d0563 commit a4aca7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions sl4atools/python2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ fi
PW=`pwd`
ver=2.7
py4a=pythonforandroid
bin=python
binr=python
export EXTERNAL_STORAGE=$st
export LANG=en
bin=/data/data/com.googlecode.$py4a/files/$bin
bin=/data/data/com.googlecode.$py4a/files/$binr
pfx=$st/com.googlecode.$py4a
ext=$pfx/extras/$bin
ext=$pfx/extras/$binr
PYTHONUSERBASE=$pfx/local
PYTHONPATH=$ext
PYTHONPATH=${PYTHONPATH}:$PYTHONUSERBASE
Expand Down
9 changes: 6 additions & 3 deletions sl4atools/python3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ fi
PW=`pwd`
ver=3.6
py4a=python3forandroid
bin=python3
binr=python3
export EXTERNAL_STORAGE=$st
export LANG=en
bin=/data/data/com.googlecode.$py4a/files/$bin
bin=/data/data/com.googlecode.$py4a/files/$binr
pfx=$st/com.googlecode.$py4a
ext=$pfx/extras/$bin
ext=$pfx/extras/$binr
# normal (pure python modules only)
PYTHONUSERBASE=$pfx/local
# to use C extension modules (with shared lib)
# PYTHONUSERBASE=/data/local/tmp/local
PYTHONPATH=$ext
PYTHONPATH=${PYTHONPATH}:$PYTHONUSERBASE
PYTHONPATH=${PYTHONPATH}:$bin/lib/python$ver/lib-dynload
Expand Down

0 comments on commit a4aca7f

Please sign in to comment.