-# 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
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,PYComponent,add_type,add_module
pydefs="""import SALOME_TYPES"""
pybody="""
-print a,b,c,d,d2,d3,e,f,g
+print (a,b,c,d,d2,d3,e,f,g)
aa=SALOME_TYPES.Parameter(name="a",value="45.")
ab=[]
ac=[1,2,3]
ae=["aaa","bbb"]
af=SALOME_TYPES.ParametricInput(inputVarList=ae,outputVarList=ae, inputValues=[[[[1,2,3]]]],specificParameters=[])
ag=SALOME_TYPES.ParametricOutput(outputValues=[[[[1,2,3]]]], specificOutputInfos=[], returnCode=1, errorMessage="error")
-print aa,ab,ac,ad,ad2,ad3,ae,af,ag
+print (aa,ab,ac,ad,ad2,ad3,ae,af,ag)
"""
s2pybody="""
-print "service s2 python component"
+print ("service s2 python component")
aa=a
a.Register()
"""
g.configure()
g.make()
g.install()
-g.make_appli("appli", restrict=["KERNEL"], altmodules={"GUI":GUI_ROOT_DIR, "YACS":YACS_ROOT_DIR, "GEOM":GEOM_ROOT_DIR})
+g.make_appli("appli", restrict=["KERNEL"],
+ altmodules={"GUI":GUI_ROOT_DIR,
+ "YACS":YACS_ROOT_DIR,
+ "GEOM":GEOM_ROOT_DIR},
+ sys_modules=SYS_MODULES)