5 class SalomeSession(object):
6 def __init__(self, script):
8 sys.argv = ["runSalome.py"]
9 sys.argv += ["--terminal"]
10 sys.argv += ["--modules=GEOM,MED,SMESH"]
11 sys.argv += ["--execute=%s" % script]
12 clt, d = runSalome.main()
18 import killSalomeWithPort
19 killSalomeWithPort.killMyPort(port)
23 class MyTest(unittest.TestCase):
24 def testFunction(self):
25 SalomeSession(sys.argv[1])
28 unittest.main(argv=sys.argv[:1])