obf.py
author lbessard
Wed, 18 Apr 2007 16:39:28 +0200
changeset 13 69075340d6a9
parent 5 f8652b073e84
child 58 39cd981ff242
permissions -rw-r--r--
Adding support for forbidding insertion of function block into function
5
f8652b073e84 GPL->LGPL
etisserant
parents:
diff changeset
     1
from py_compile import compile
f8652b073e84 GPL->LGPL
etisserant
parents:
diff changeset
     2
from commands import getoutput
f8652b073e84 GPL->LGPL
etisserant
parents:
diff changeset
     3
from os import remove,getcwd,rename
f8652b073e84 GPL->LGPL
etisserant
parents:
diff changeset
     4
f8652b073e84 GPL->LGPL
etisserant
parents:
diff changeset
     5
for filename in getoutput("find . -name '*.py'").splitlines():
f8652b073e84 GPL->LGPL
etisserant
parents:
diff changeset
     6
        print "Compilation de :", filename
f8652b073e84 GPL->LGPL
etisserant
parents:
diff changeset
     7
        compile(filename)