Salome HOME
Porting to python3
[tools/yacsgen.git] / Examples / paco3 / components.py
index 3f93635b57458e7eece4d0ebd40a76658a294d1a..a3f4ab98f37662dab760df9199d88a2bde31d1ea 100644 (file)
@@ -1,10 +1,10 @@
 # -*- coding: utf-8 *-
-# Copyright (C) 2009-2013  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
@@ -21,7 +21,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()