]> git.phdru.name Git - dotfiles.git/blobdiff - bin/compyleall
Fix(bin/cp_recode_fname): Fix misspelled message
[dotfiles.git] / bin / compyleall
index 8ba7cb54a9d7f35fc99cd5f34e6e1519777ee5cb..70e95c83e706658fdd7d2f8cdc38378bf1315c67 100755 (executable)
@@ -1,12 +1,4 @@
 #! /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 .