radare2/sys/CONFIG
pancake c37806c16a Add sys/python-r2pipe.sh
from r2pipe import r2pipe
	r = r2pipe("/bin/ls")
	print(r.cmdj("ij")["bin"]["arch"]
2015-01-03 03:00:53 +01:00

12 lines
174 B
Plaintext

PYTHON_VERSION=2.7
PYTHON=python${PYTHON_VERSION}
[ -z "${PREFIX}" ] && PREFIX=/usr
ID=`id -u`
if [ "$ID" = 0 ]; then
SUDO=
else
SUDO=sudo
fi
[ -n "${NOSUDO}" ] && SUDO=