obf.py
author lbessard
Tue, 10 Apr 2007 18:02:40 +0200
changeset 7 f1691e685c49
parent 5 f8652b073e84
child 58 39cd981ff242
permissions -rw-r--r--
Adding error messages on LD editor
Adding Drag and Drop on ST and IL Editors
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)