mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2024-11-26 22:50:40 +00:00
19 lines
331 B
Bash
Executable File
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
|