unicornafl: python/module check with faster method
MODIFY
test/test.sh
test/test.sh
@@ -886,7 +886,7 @@ test -d ../unicorn_mode/unicornafl && {
EASY_INSTALL_FOUND=0
for PYTHON in $PYTHONS ; do
- if $PYTHON -c "help('modules');" 2>/dev/null | grep -q easy_install ; then
+ if $PYTHON -c "help('easy_install');" </dev/null | grep -q module ; then
EASY_INSTALL_FOUND=1
PY=$PYTHON

MODIFY
unicorn_mode/build_unicorn_support.sh
unicorn_mode/build_unicorn_support.sh
@@ -112,8 +112,7 @@ PYTHONS="`command -v python3` `command -v python` `command -v python2`"
EASY_INSTALL_FOUND=0
for PYTHON in $PYTHONS ; do
- # slow, but should work
- if $PYTHON -c "help('modules');" 2>/dev/null | grep -q easy_install ; then
+ if $PYTHON -c "help('$EASY_INSTALL');" </dev/null | grep -q module ; then
EASY_INSTALL_FOUND=1
PYTHONBIN=$PYTHON

unicornafl: python/module check with faster method