python-uncompyle6/test/test_one

19 lines
331 B
Bash
Executable File

#!/bin/bash
PAGER=${PAGER:-less}
file=$1
shift
options=$@
#BASEDIR=test/bytecode_1.5
#BASEDIR=test/bytecode_2.0
#BASEDIR=test/bytecode_2.1
#BASEDIR=test/bytecode_2.2
BASEDIR=test/bytecode_2.7
if [[ `dirname $file` == '.' ]] ; then
file=$BASEDIR/test_$file.pyc
fi
python -u ./scripts/uncompyle6 $options $file 2>&1 | $PAGER