common/hooks: fix pycompile_module with explicit python_version=2
This commit is contained in:
parent
c780b513ad
commit
5028523d43
@ -272,6 +272,8 @@ _EOF
|
|||||||
|
|
||||||
if [ "$pycompile_version" = 3 ]; then
|
if [ "$pycompile_version" = 3 ]; then
|
||||||
pycompile_version=${py3_ver}
|
pycompile_version=${py3_ver}
|
||||||
|
elif [ "$pycompile_version" = 2 ]; then
|
||||||
|
pycompile_version=${py2_ver}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${pycompile_dirs}" -o -n "${pycompile_module}" ]; then
|
if [ -n "${pycompile_dirs}" -o -n "${pycompile_module}" ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user