Salome HOME
Copyright update 2021
[tools/yacsgen.git] / Examples / cpp2 / components.py
index ff6a7478c9652f657483f19073c1a35af81c2302..d4f5f60abcc5945ea974da771b3934ead5b1ea1e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2009-2015  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()