diff options
Diffstat (limited to 'autoscripts/postinst-python')
-rw-r--r-- | autoscripts/postinst-python | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/autoscripts/postinst-python b/autoscripts/postinst-python new file mode 100644 index 00000000..5a1943eb --- /dev/null +++ b/autoscripts/postinst-python @@ -0,0 +1,7 @@ +PYTHON=#PYVER# +if which $PYTHON >/dev/null 2>&1 && [ -e /usr/lib/$PYTHON/compileall.py ]; then + DIRLIST="#DIRLIST#" + for i in $DIRLIST ; do + $PYTHON /usr/lib/$PYTHON/compileall.py -q $i + done +fi |