X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=Examples%2Fcpp2%2Fcomponents.py;h=d4f5f60abcc5945ea974da771b3934ead5b1ea1e;hb=8b4424caa9bc6abdcd519333a0acc9533e3d2a63;hp=94d45abefb3e18708a657614e1b170e96a8ad89e;hpb=a6ca09677114f08853402b630e58d69fa67ad9e5;p=tools%2Fyacsgen.git diff --git a/Examples/cpp2/components.py b/Examples/cpp2/components.py index 94d45ab..d4f5f60 100644 --- a/Examples/cpp2/components.py +++ b/Examples/cpp2/components.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2014 EDF R&D +# Copyright (C) 2009-2021 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,CPPComponent cwd=os.getcwd()