From: Anthony Geay Date: Thu, 17 Feb 2022 15:44:18 +0000 (+0100) Subject: Fix salome_instance.py called by salome_test_driver.py in order to launch instance... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=97e4ac6bce51c360efbcd013da02f99e985bf76d;p=modules%2Fkernel.git Fix salome_instance.py called by salome_test_driver.py in order to launch instance of session for old style. Protection of killList method. Fix salomeContext.py in order to make "salome withsession" run OK --- diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt index bede2a508..16d8f13c8 100644 --- a/bin/CMakeLists.txt +++ b/bin/CMakeLists.txt @@ -48,7 +48,6 @@ SET(SCRIPTS runSalomeCommon.py runSalome.py runSalomeOld.py - runSalomeSL.py runSalomeNoServer.py runSession.py runConsole.py diff --git a/bin/addToKillList.py b/bin/addToKillList.py index 3f892e772..e306ccdd9 100755 --- a/bin/addToKillList.py +++ b/bin/addToKillList.py @@ -120,7 +120,8 @@ def killList(port=None): pass pass # remove processes dictionary file - os.remove(filedict) + if os.path.exists(filedict): + os.remove(filedict) pass if __name__ == "__main__": diff --git a/bin/appliskel/salome_tester/salome_instance.py b/bin/appliskel/salome_tester/salome_instance.py index 28e29853f..df7e43237 100755 --- a/bin/appliskel/salome_tester/salome_instance.py +++ b/bin/appliskel/salome_tester/salome_instance.py @@ -65,7 +65,7 @@ class SalomeInstance: if args is None: args = [] - sys.argv = ['runSalome'] + args + sys.argv = ['runSalomeOld'] + args if with_gui: # :WARNING: NOT TESTED YET @@ -82,8 +82,8 @@ class SalomeInstance: import setenv setenv.main(True) - import runSalome - runSalome.runSalome() + import runSalomeOld + runSalomeOld.runSalome() if not with_gui: import salome diff --git a/bin/salomeContext.py b/bin/salomeContext.py index a8eb9dd28..3cc93d22d 100755 --- a/bin/salomeContext.py +++ b/bin/salomeContext.py @@ -353,12 +353,12 @@ class SalomeContext: if args is None: args = [] # Initialize SALOME environment - sys.argv = ['runSalome'] + args + sys.argv = ['runSalomeOld'] + args import setenv - setenv.main(True, exeName="salome start") + setenv.main(True, exeName="salome withsession") - import runSalome - runSalome.runSalome() + import runSalomeOld + runSalomeOld.runSalome() return 0 #