Salome HOME
Merge branch 'master' into V9_dev
[tools/yacsgen.git] / Examples / calcium2 / components.py
index 93676f7229305ea46c2749a0f06eff7ab19b088b..c6fd48b576f1306ca7fa6777882f81654d9a147a 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("../context.py")
+exec(compile(open("../context.py").read(), "../context.py", 'exec'))
 from module_generator import Generator,Module,Service,PYComponent,CPPComponent,F77Component
 from module_generator import Library