obf.py
author lbessard
Tue, 10 Jul 2007 17:30:41 +0200
changeset 32 cf9efccff009
parent 5 f8652b073e84
child 58 39cd981ff242
permissions -rw-r--r--
FBD_Variable don't remove wire when just expression changed
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)