X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=Examples%2Fpygui1%2Fcomponents.py;h=d2d2fb97226a71a22b31b7e9931d522b3a8e3229;hb=8b4424caa9bc6abdcd519333a0acc9533e3d2a63;hp=6e2d3e250f52fcb2855003ca3e84de218edc9291;hpb=73e15b55cf02729e6d2396ee96fb8e926494f76f;p=tools%2Fyacsgen.git diff --git a/Examples/pygui1/components.py b/Examples/pygui1/components.py index 6e2d3e2..d2d2fb9 100644 --- a/Examples/pygui1/components.py +++ b/Examples/pygui1/components.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2014 EDF R&D +# Copyright (C) 2009-2021 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 * @@ -48,7 +48,7 @@ class A(SALOME_DriverPy.SALOME_DriverPy_i): def createObject( self, study, name ): "Create object. " try: - print study,name + print (study,name) builder = study.NewBuilder() father = study.FindComponent( "pycompos" ) if father is None: