Salome HOME
Merge branch 'pre/V8_5_BR'
[tools/yacsgen.git] / Examples / paco2 / components.py
index 2fe920e392099d65defb356857d3e02e0e4b5148..8fd959ab57da528b45b12df94def58a685b8c6af 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright (C) 2009-2012  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
 # License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
 #
 # This library is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -20,7 +20,7 @@
 import os
 
 #import context from ..
-execfile("../pacocontext.py")
+exec(compile(open("../pacocontext.py").read(), "../pacocontext.py", 'exec'))
 from module_generator import Generator,Module,Service,PACOComponent
 
 cwd=os.getcwd()