Salome HOME
Merge branch 'pre/V8_5_BR'
[tools/yacsgen.git] / Examples / cpp1 / components.py
index 51522a07fa4827a829940642d5198b4fad80278e..cbdd7ffc53299537b91b82666281c0ebb0ed58b2 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,CPPComponent
 
 cwd=os.getcwd()
@@ -48,14 +48,12 @@ c1=CPPComponent("compo1",services=[
                        defs="//def1",body=body,
                  ),
           ],
-         includes="-I/usr/include",
          calciumextendedinterface=1,
          )
 
 
 g=Generator(Module("cppcompos",components=[c1],prefix="./install"),context)
 g.generate()
-g.bootstrap()
 g.configure()
 g.make()
 g.install()