X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=Examples%2Fcalcium2%2Fcomponents.py;h=c6fd48b576f1306ca7fa6777882f81654d9a147a;hb=c3e6f9efc2a68074a087d0600f48a7313d3fff60;hp=93676f7229305ea46c2749a0f06eff7ab19b088b;hpb=7dd404a621ddc5766a010f50e42dff5b9530c4f5;p=tools%2Fyacsgen.git diff --git a/Examples/calcium2/components.py b/Examples/calcium2/components.py index 93676f7..c6fd48b 100644 --- a/Examples/calcium2/components.py +++ b/Examples/calcium2/components.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2014 EDF R&D +# Copyright (C) 2009-2016 EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -20,7 +20,7 @@ import os #import context from .. -execfile("../context.py") +exec(compile(open("../context.py").read(), "../context.py", 'exec')) from module_generator import Generator,Module,Service,PYComponent,CPPComponent,F77Component from module_generator import Library