lbessard@58: #!/usr/bin/env python lbessard@58: # -*- coding: utf-8 -*- lbessard@58: lbessard@58: #This file is part of PLCOpenEditor, a library implementing an IEC 61131-3 editor lbessard@58: #based on the plcopen standard. lbessard@58: # lbessard@58: #Copyright (C) 2007: Edouard TISSERANT and Laurent BESSARD lbessard@58: # lbessard@58: #See COPYING file for copyrights details. lbessard@58: # lbessard@58: #This library is free software; you can redistribute it and/or lbessard@58: #modify it under the terms of the GNU General Public lbessard@58: #License as published by the Free Software Foundation; either lbessard@58: #version 2.1 of the License, or (at your option) any later version. lbessard@58: # lbessard@58: #This library is distributed in the hope that it will be useful, lbessard@58: #but WITHOUT ANY WARRANTY; without even the implied warranty of lbessard@58: #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU lbessard@58: #General Public License for more details. lbessard@58: # lbessard@58: #You should have received a copy of the GNU General Public lbessard@58: #License along with this library; if not, write to the Free Software lbessard@58: #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA lbessard@58: etisserant@5: from py_compile import compile etisserant@5: from commands import getoutput etisserant@5: from os import remove,getcwd,rename etisserant@5: etisserant@5: for filename in getoutput("find . -name '*.py'").splitlines(): etisserant@5: print "Compilation de :", filename etisserant@5: compile(filename)