Salome HOME
Merge V9_dev branch into master
[tools/yacsgen.git] / Examples / paco2 / components.py
index a954043d7d2a98eedfb2a9373d72086656fbc337..8fd959ab57da528b45b12df94def58a685b8c6af 100644 (file)
@@ -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("../pacocontext.py")
+exec(compile(open("../pacocontext.py").read(), "../pacocontext.py", 'exec'))
 from module_generator import Generator,Module,Service,PACOComponent
 
 cwd=os.getcwd()