Skip to content

Commit ddaf08b

Browse files
committed
distribute.sh python2 and python3 support
1 parent bde2259 commit ddaf08b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

distribute.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
MODULES=$MODULES
1111

1212
# Paths
13-
ROOT_PATH="$(dirname $(python -c 'import os,sys;print os.path.realpath(sys.argv[1])' $0))"
13+
ROOT_PATH="$(dirname $(python -c 'from __future__ import print_function; import os,sys;print(os.path.realpath(sys.argv[1]))' $0))"
1414
RECIPES_PATH="$ROOT_PATH/recipes"
1515
BUILD_PATH="$ROOT_PATH/build"
1616
LIBS_PATH="$ROOT_PATH/build/libs"
@@ -133,7 +133,7 @@ function push_arm() {
133133
export LDFLAGS="-lm"
134134

135135
# this must be something depending of the API level of Android
136-
PYPLATFORM=$(python -c 'import sys; print sys.platform')
136+
PYPLATFORM=$(python -c 'from __future__ import print_function; import sys; print(sys.platform)')
137137
if [ "$PYPLATFORM" == "linux2" ]; then
138138
PYPLATFORM="linux"
139139
elif [ "$PYPLATFORM" == "linux3" ]; then

0 commit comments

Comments
 (0)