obf.py
author etisserant
Fri, 13 Jul 2007 19:21:17 +0200
changeset 39 5b04b4670697
parent 5 f8652b073e84
child 58 39cd981ff242
permissions -rw-r--r--
First working IEC std lib test, actually test from string and to_string functions.
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)