File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55# https://github.com/tito/python-for-android
66#
77# ------------------------------------------------------------------------------
8+ ifile=" $( dirname " ${BASH_SOURCE[0]} " ) /tools/distribute.functions.sh"
9+ . " $ifile " || { echo " $ifile file not found" ; exit 1; }
810
911# Modules
1012MODULES=
@@ -43,7 +45,7 @@ if [ "X$VIRTUALENV_NAME" == "X" ]; then
4345fi
4446
4547# Paths
46- ROOT_PATH=" $( dirname $( $PYTHON -c ' from __future__ import print_function; import os,sys;print(os.path.realpath(sys.argv[1])) ' $0 ) ) "
48+ ROOT_PATH=" $( npath " $0 " ) "
4749RECIPES_PATH=" $ROOT_PATH /recipes"
4850BUILD_PATH=" $ROOT_PATH /build"
4951LIBS_PATH=" $ROOT_PATH /build/libs"
Original file line number Diff line number Diff line change 1+ function npath
2+ {
3+ python -c ' import os, sys;\
4+ x = os.path.join(*sys.argv[1:]);\
5+ x = os.path.expanduser(x);\
6+ x = os.path.realpath(x);\
7+ x = os.path.normpath(x);\
8+ x = os.path.abspath(x);\
9+ print(x)' " $@ "
10+ }
11+
You can’t perform that action at this time.
0 commit comments