]> git.phdru.name Git - dotfiles.git/blobdiff - bin/compyleall
Use compileall.py
[dotfiles.git] / bin / compyleall
index 8ba7cb54a9d7f35fc99cd5f34e6e1519777ee5cb..f78f33d0239ad120b0b6050f7e54729886f11d9a 100755 (executable)
@@ -1,12 +1,3 @@
 #! /bin/sh
-
-umask 022
-
-if [ -z "$PY_VER" ]; then
-   PY_VER="`python -c 'import sys; print sys.version[:3]'`"
-fi
-
-PY_PREFIX="`python$PY_VER -c 'import sys; print sys.prefix'`"
-
-python$PY_VER $PY_PREFIX/lib/python$PY_VER/compileall.py .
-python$PY_VER -O $PY_PREFIX/lib/python$PY_VER/compileall.py .
+     python$PY_VER    -m compileall . &&
+exec python$PY_VER -O -m compileall .