X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=Examples%2Fast2%2Fcomponents.py;h=d898cf93f8ca2bd76ed4d15f4290396234309b73;hb=cc7cc752cd3ec1a65c2453f68fb6df4b996642b1;hp=7932c7764ff83361d34e6fc5289e807958827a19;hpb=5c8ede90327c7e68cdb9a599d553778a9c32996d;p=tools%2Fyacsgen.git diff --git a/Examples/ast2/components.py b/Examples/ast2/components.py index 7932c77..d898cf9 100644 --- a/Examples/ast2/components.py +++ b/Examples/ast2/components.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2016 EDF R&D +# Copyright (C) 2009-2022 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 @@ -23,7 +23,7 @@ import os #import context from .. -execfile("../context.py") +exec(compile(open("../context.py").read(), "../context.py", 'exec')) from module_generator import Generator,Module,ASTERComponent,Service,F77Component aster_root=os.path.join(aster_home,aster_version) @@ -74,4 +74,4 @@ g.bootstrap() 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)