]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postinst-python
r1814: * Remove hardcoded pathc to update-modules and gconf-schemas in various
[debhelper.git] / autoscripts / postinst-python
index 6f1f9a5b885e9ebe9005470ccaef5067ef8a88a6..c48d1aa64150120542ca7856dd7c4beeb9c69bb1 100644 (file)
@@ -1,5 +1,5 @@
 PYTHON=#PYVER#
-if which $PYTHON >/dev/null 2>&1; then
+if which $PYTHON >/dev/null 2>&1 && [ -e /usr/lib/$PYTHON/compileall.py ]; then
        DIRLIST="#DIRLIST#"
        for i in $DIRLIST ; do
                $PYTHON -O /usr/lib/$PYTHON/compileall.py -q $i