X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=Examples%2Fcpp1%2Fcomponents.py;h=feeaa15b4ae175b802e8fe1e4b4e73f49f6b1e4e;hb=HEAD;hp=d5bf043b9d7779dbfec39287d83a247dbec54ad6;hpb=73e15b55cf02729e6d2396ee96fb8e926494f76f;p=tools%2Fyacsgen.git diff --git a/Examples/cpp1/components.py b/Examples/cpp1/components.py index d5bf043..feeaa15 100644 --- a/Examples/cpp1/components.py +++ b/Examples/cpp1/components.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2014 EDF R&D +# Copyright (C) 2009-2024 EDF # # 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() @@ -57,5 +57,6 @@ g.generate() g.configure() g.make() g.install() -g.make_appli("appli", restrict=["KERNEL"], altmodules={"GUI":GUI_ROOT_DIR, "YACS":YACS_ROOT_DIR}) +g.make_appli("appli", restrict=["KERNEL"], altmodules={"GUI":GUI_ROOT_DIR, + "YACS":YACS_ROOT_DIR}, sys_modules=SYS_MODULES)