salome.kernel 9.14.0__cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of salome.kernel might be problematic. Click here for more details.

Files changed (400) hide show
  1. salome/bin/salome/IDLparser.py +882 -0
  2. salome/bin/salome/KernelHelpersUseCases +0 -0
  3. salome/bin/salome/NSparam.py +51 -0
  4. salome/bin/salome/ORBConfigFile.py +55 -0
  5. salome/bin/salome/SALOMEDS_Client +0 -0
  6. salome/bin/salome/SALOMEDS_Server +0 -0
  7. salome/bin/salome/SALOME_ConnectionManagerServer +0 -0
  8. salome/bin/salome/SALOME_Container +0 -0
  9. salome/bin/salome/SALOME_ContainerPy.py +397 -0
  10. salome/bin/salome/SALOME_Container_No_NS_Serv +0 -0
  11. salome/bin/salome/SALOME_Container_No_NS_Serv_OutProcess +0 -0
  12. salome/bin/salome/SALOME_Container_No_NS_Serv_OutProcess_FT +0 -0
  13. salome/bin/salome/SALOME_Container_No_NS_Serv_OutProcess_Replay +0 -0
  14. salome/bin/salome/SALOME_Container_No_NS_Serv_OutProcess_Replay_FT +0 -0
  15. salome/bin/salome/SALOME_DataScopeServer +0 -0
  16. salome/bin/salome/SALOME_DataScopeServer_SSL +0 -0
  17. salome/bin/salome/SALOME_LauncherServer +0 -0
  18. salome/bin/salome/SALOME_Logger_Server +0 -0
  19. salome/bin/salome/SALOME_ModuleCatalog_Client +0 -0
  20. salome/bin/salome/SALOME_ModuleCatalog_Server +0 -0
  21. salome/bin/salome/SALOME_Registry_Server +0 -0
  22. salome/bin/salome/TestComponentPy.py +71 -0
  23. salome/bin/salome/TestContainer +0 -0
  24. salome/bin/salome/TestContainerManager +0 -0
  25. salome/bin/salome/TestLauncher +0 -0
  26. salome/bin/salome/TestLifeCycleCORBA.py +89 -0
  27. salome/bin/salome/TestLogger +0 -0
  28. salome/bin/salome/TestLogger.py +27 -0
  29. salome/bin/salome/TestModuleCatalog.py +87 -0
  30. salome/bin/salome/Test_LifeCycleCORBA +0 -0
  31. salome/bin/salome/VERSION +3 -0
  32. salome/bin/salome/addToKillList.py +35 -0
  33. salome/bin/salome/app-quickstart.py +288 -0
  34. salome/bin/salome/appli/.bashrc +50 -0
  35. salome/bin/salome/appli/extra.env.d/001.py +39 -0
  36. salome/bin/salome/appli/python_test_driver.py +148 -0
  37. salome/bin/salome/appli/salome +193 -0
  38. salome/bin/salome/appli/salome_instance.py +31 -0
  39. salome/bin/salome/appli/salome_test_driver.py +150 -0
  40. salome/bin/salome/appli/salome_test_driver_gui.py +82 -0
  41. salome/bin/salome/appli_clean.sh +53 -0
  42. salome/bin/salome/appli_gen.py +606 -0
  43. salome/bin/salome/dummyexe_loggerTraceCollector +0 -0
  44. salome/bin/salome/envSalome.py +59 -0
  45. salome/bin/salome/killSalome.py +48 -0
  46. salome/bin/salome/killSalomeWithPort.py +56 -0
  47. salome/bin/salome/prepare_generating_doc.py +104 -0
  48. salome/bin/salome/pythonpath_reduction.py +184 -0
  49. salome/bin/salome/runConsole.py +39 -0
  50. salome/bin/salome/runIDLparser +58 -0
  51. salome/bin/salome/runRemote.py +101 -0
  52. salome/bin/salome/runSalome.py +30 -0
  53. salome/bin/salome/runSalomeNoServer.py +24 -0
  54. salome/bin/salome/runSalomeOld.py +36 -0
  55. salome/bin/salome/runSalomeOnDemand.py +41 -0
  56. salome/bin/salome/salomeContext.py +36 -0
  57. salome/bin/salome/salome_process_attach +44 -0
  58. salome/bin/salome/salome_process_launcher +58 -0
  59. salome/bin/salome/setenv.py +32 -0
  60. salome/bin/salome/showNS.py +33 -0
  61. salome/bin/salome/test/kernel/ArgvKeeper/CTestTestfile.cmake +31 -0
  62. salome/bin/salome/test/kernel/ArgvKeeper/TestArgvKeeper +0 -0
  63. salome/bin/salome/test/kernel/ArgvKeeper/test_ArgvKeeper.py +34 -0
  64. salome/bin/salome/test/kernel/CTestTestfile.cmake +49 -0
  65. salome/bin/salome/test/kernel/Container/CTestTestfile.cmake +29 -0
  66. salome/bin/salome/test/kernel/Container/testProxy.py +291 -0
  67. salome/bin/salome/test/kernel/Container/testcontainer.py +106 -0
  68. salome/bin/salome/test/kernel/KernelHelpers/CTestTestfile.cmake +31 -0
  69. salome/bin/salome/test/kernel/KernelHelpers/KernelHelpersUnitTests.hxx +58 -0
  70. salome/bin/salome/test/kernel/KernelHelpers/TestKernelHelpers +0 -0
  71. salome/bin/salome/test/kernel/KernelHelpers/TestKernelHelpers.py +55 -0
  72. salome/bin/salome/test/kernel/Launcher/CTestTestfile.cmake +43 -0
  73. salome/bin/salome/test/kernel/Launcher/TestSSLAttached.py +110 -0
  74. salome/bin/salome/test/kernel/Launcher/launcher_use_case.py +65 -0
  75. salome/bin/salome/test/kernel/Launcher/testCrashProofContainer.py +423 -0
  76. salome/bin/salome/test/kernel/Launcher/testPerfLogManager1.py +382 -0
  77. salome/bin/salome/test/kernel/Launcher/test_launcher.py +674 -0
  78. salome/bin/salome/test/kernel/Launcher/test_stress.sh +45 -0
  79. salome/bin/salome/test/kernel/Launcher_SWIG/CTestTestfile.cmake +30 -0
  80. salome/bin/salome/test/kernel/Launcher_SWIG/test_swig_launcher.py +706 -0
  81. salome/bin/salome/test/kernel/LifeCycleCORBA/CTestTestfile.cmake +27 -0
  82. salome/bin/salome/test/kernel/LifeCycleCORBA/LifeCycleCORBATest.hxx +105 -0
  83. salome/bin/salome/test/kernel/LifeCycleCORBA/TestLifeCycleCORBA +0 -0
  84. salome/bin/salome/test/kernel/LifeCycleCORBA/TestLifeCycleCORBA.py +93 -0
  85. salome/bin/salome/test/kernel/LifeCycleCORBA_SWIG/CTestTestfile.cmake +40 -0
  86. salome/bin/salome/test/kernel/LifeCycleCORBA_SWIG/CatalogResources_resource.xml +15 -0
  87. salome/bin/salome/test/kernel/LifeCycleCORBA_SWIG/LifeCycleCORBA_SWIGTest.py +217 -0
  88. salome/bin/salome/test/kernel/LifeCycleCORBA_SWIG/SALOME_TestComponentPy.py +49 -0
  89. salome/bin/salome/test/kernel/LifeCycleCORBA_SWIG/TestLifeCycleCORBA_SWIG.py +100 -0
  90. salome/bin/salome/test/kernel/LifeCycleCORBA_SWIG/testcontainermanager.py +88 -0
  91. salome/bin/salome/test/kernel/LifeCycleCORBA_SWIG/testresourcemanager.py +155 -0
  92. salome/bin/salome/test/kernel/NamingService/CTestTestfile.cmake +28 -0
  93. salome/bin/salome/test/kernel/NamingService/NamingServiceTest.hxx +169 -0
  94. salome/bin/salome/test/kernel/NamingService/TestNamingService +0 -0
  95. salome/bin/salome/test/kernel/NamingService/TestNamingService.py +64 -0
  96. salome/bin/salome/test/kernel/SALOMEDS/CTestTestfile.cmake +27 -0
  97. salome/bin/salome/test/kernel/SALOMEDS/SALOMEDSTest.hxx +192 -0
  98. salome/bin/salome/test/kernel/SALOMEDS/TestSALOMEDS +0 -0
  99. salome/bin/salome/test/kernel/SALOMEDS/TestSALOMEDS.py +55 -0
  100. salome/bin/salome/test/kernel/SALOMEDSImpl/CTestTestfile.cmake +27 -0
  101. salome/bin/salome/test/kernel/SALOMEDSImpl/SALOMEDSImplTest.hxx +51 -0
  102. salome/bin/salome/test/kernel/SALOMEDSImpl/TestSALOMEDSImpl +0 -0
  103. salome/bin/salome/test/kernel/SALOMEDSImpl/TestSALOMEDSImpl.py +55 -0
  104. salome/bin/salome/test/kernel/SALOMELocalTrace/CTestTestfile.cmake +27 -0
  105. salome/bin/salome/test/kernel/SALOMELocalTrace/SALOMELocalTraceTest.hxx +59 -0
  106. salome/bin/salome/test/kernel/SALOMELocalTrace/TestSALOMELocalTrace +0 -0
  107. salome/bin/salome/test/kernel/SALOMELocalTrace/TestSALOMELocalTrace.py +40 -0
  108. salome/bin/salome/test/kernel/SALOMETraceCollector/CTestTestfile.cmake +27 -0
  109. salome/bin/salome/test/kernel/SALOMETraceCollector/SALOMETraceCollectorTest.hxx +51 -0
  110. salome/bin/salome/test/kernel/SALOMETraceCollector/TestSALOMETraceCollector +0 -0
  111. salome/bin/salome/test/kernel/SALOMETraceCollector/TestSALOMETraceCollector.py +57 -0
  112. salome/bin/salome/test/kernel/UnitTests/CTestTestfile.cmake +28 -0
  113. salome/bin/salome/test/kernel/UnitTests/UnitTests +0 -0
  114. salome/bin/salome/test/kernel/UnitTests/UnitTests.py +89 -0
  115. salome/bin/salome/test/kernel/Utils/CTestTestfile.cmake +27 -0
  116. salome/bin/salome/test/kernel/Utils/TestUtils +0 -0
  117. salome/bin/salome/test/kernel/Utils/TestUtils.py +55 -0
  118. salome/bin/salome/test/kernel/Utils/UtilsTest.hxx +58 -0
  119. salome/bin/salome/test/kernel/lib/libLifeCycleCORBATest.so +0 -0
  120. salome/bin/salome/test/kernel/lib/libNamingServiceTest.so +0 -0
  121. salome/bin/salome/test/kernel/lib/libSALOMEDSImplTest.so +0 -0
  122. salome/bin/salome/test/kernel/lib/libSALOMEDSTest.so +0 -0
  123. salome/bin/salome/test/kernel/lib/libSALOMELocalTraceTest.so +0 -0
  124. salome/bin/salome/test/kernel/lib/libSALOMETraceCollectorTest.so +0 -0
  125. salome/bin/salome/test/kernel/lib/libSalomeKernelHelpersTest.so +0 -0
  126. salome/bin/salome/test/kernel/lib/libUtilsTest.so +0 -0
  127. salome/bin/salome/testDF +0 -0
  128. salome/bin/salome/testDS +0 -0
  129. salome/bin/salome/virtual_salome.py +38 -0
  130. salome/bin/salome/waitContainers.py +82 -0
  131. salome/bin/salome/waitNS.py +31 -0
  132. salome/kernel/ArgvKeeper.py +132 -0
  133. salome/kernel/Calcium_Ports_idl.py +645 -0
  134. salome/kernel/DSC_Engines_idl.py +443 -0
  135. salome/kernel/Engines/__init__.py +24 -0
  136. salome/kernel/Engines__POA/__init__.py +24 -0
  137. salome/kernel/Help.py +141 -0
  138. salome/kernel/KernelBasis.py +463 -0
  139. salome/kernel/KernelContainer.py +81 -0
  140. salome/kernel/KernelDS.py +87 -0
  141. salome/kernel/KernelLauncher.py +117 -0
  142. salome/kernel/KernelLogger.py +75 -0
  143. salome/kernel/KernelModuleCatalog.py +76 -0
  144. salome/kernel/KernelSDS.py +92 -0
  145. salome/kernel/KernelServices.py +105 -0
  146. salome/kernel/LifeCycleCORBA.py +92 -0
  147. salome/kernel/Logger_idl.py +89 -0
  148. salome/kernel/NSTEST/__init__.py +13 -0
  149. salome/kernel/NSTEST__POA/__init__.py +13 -0
  150. salome/kernel/NSparam_impl.py +50 -0
  151. salome/kernel/NamingService.py +365 -0
  152. salome/kernel/ORBConfigFile_impl.py +102 -0
  153. salome/kernel/Palm_Ports_idl.py +162 -0
  154. salome/kernel/PortManager.py +259 -0
  155. salome/kernel/Ports/Calcium_Ports/__init__.py +13 -0
  156. salome/kernel/Ports/Palm_Ports/__init__.py +13 -0
  157. salome/kernel/Ports/__init__.py +18 -0
  158. salome/kernel/Ports__POA/Calcium_Ports/__init__.py +13 -0
  159. salome/kernel/Ports__POA/Palm_Ports/__init__.py +13 -0
  160. salome/kernel/Ports__POA/__init__.py +18 -0
  161. salome/kernel/PyInterp.py +99 -0
  162. salome/kernel/Registry/__init__.py +13 -0
  163. salome/kernel/Registry__POA/__init__.py +13 -0
  164. salome/kernel/SALOME/__init__.py +19 -0
  165. salome/kernel/SALOMEDS/__init__.py +14 -0
  166. salome/kernel/SALOMEDS_Attributes_idl.py +2288 -0
  167. salome/kernel/SALOMEDS__POA/__init__.py +14 -0
  168. salome/kernel/SALOMEDS_idl.py +1590 -0
  169. salome/kernel/SALOMEWrappedStdType.py +383 -0
  170. salome/kernel/SALOME_Comm_idl.py +1045 -0
  171. salome/kernel/SALOME_CommonTypes_idl.py +69 -0
  172. salome/kernel/SALOME_ComponentPy.py +338 -0
  173. salome/kernel/SALOME_Component_idl.py +962 -0
  174. salome/kernel/SALOME_Container.py +242 -0
  175. salome/kernel/SALOME_ContainerHelper.py +840 -0
  176. salome/kernel/SALOME_ContainerManager_idl.py +236 -0
  177. salome/kernel/SALOME_DriverPy.py +86 -0
  178. salome/kernel/SALOME_Embedded_NamingService.py +41 -0
  179. salome/kernel/SALOME_Embedded_NamingService_ClientPy.py +59 -0
  180. salome/kernel/SALOME_Embedded_NamingService_idl.py +125 -0
  181. salome/kernel/SALOME_Exception_idl.py +75 -0
  182. salome/kernel/SALOME_ExternalServerLauncher_idl.py +199 -0
  183. salome/kernel/SALOME_GenericObj_idl.py +154 -0
  184. salome/kernel/SALOME_GlobalsImpl.py +38 -0
  185. salome/kernel/SALOME_Launcher_idl.py +327 -0
  186. salome/kernel/SALOME_Locker_idl.py +185 -0
  187. salome/kernel/SALOME_LogManager.py +103 -0
  188. salome/kernel/SALOME_LogManager_idl.py +348 -0
  189. salome/kernel/SALOME_Logger/__init__.py +13 -0
  190. salome/kernel/SALOME_Logger__POA/__init__.py +13 -0
  191. salome/kernel/SALOME_MPIObject_idl.py +100 -0
  192. salome/kernel/SALOME_ModuleCatalog/__init__.py +13 -0
  193. salome/kernel/SALOME_ModuleCatalog__POA/__init__.py +13 -0
  194. salome/kernel/SALOME_ModuleCatalog_idl.py +624 -0
  195. salome/kernel/SALOME_NamingServicePy.py +313 -0
  196. salome/kernel/SALOME_PACOExtension_idl.py +292 -0
  197. salome/kernel/SALOME_ParamPorts_idl.py +102 -0
  198. salome/kernel/SALOME_Parametric_idl.py +154 -0
  199. salome/kernel/SALOME_Ports_idl.py +347 -0
  200. salome/kernel/SALOME_PyNode.py +1557 -0
  201. salome/kernel/SALOME_PyNode_idl.py +387 -0
  202. salome/kernel/SALOME_Registry_idl.py +155 -0
  203. salome/kernel/SALOME_ResourcesManager_idl.py +215 -0
  204. salome/kernel/SALOME_SDS_idl.py +1181 -0
  205. salome/kernel/SALOME_Session_idl.py +214 -0
  206. salome/kernel/SALOME_TYPES/__init__.py +14 -0
  207. salome/kernel/SALOME_TYPES__POA/__init__.py +14 -0
  208. salome/kernel/SALOME_TestComponent_idl.py +121 -0
  209. salome/kernel/SALOME_TestModuleCatalog/__init__.py +13 -0
  210. salome/kernel/SALOME_TestModuleCatalog__POA/__init__.py +13 -0
  211. salome/kernel/SALOME_TestModuleCatalog_idl.py +194 -0
  212. salome/kernel/SALOME_Trace.py +96 -0
  213. salome/kernel/SALOME_Types_idl.py +81 -0
  214. salome/kernel/SALOME__POA/__init__.py +19 -0
  215. salome/kernel/SALOME_utilities.py +63 -0
  216. salome/kernel/SalomeSDSClt.py +552 -0
  217. salome/kernel/TestKiller.py +76 -0
  218. salome/kernel/Utils_Identity.py +93 -0
  219. salome/kernel/_ArgvKeeper.so +0 -0
  220. salome/kernel/_KernelBasis.so +0 -0
  221. salome/kernel/_KernelContainer.so +0 -0
  222. salome/kernel/_KernelDS.so +0 -0
  223. salome/kernel/_KernelLauncher.so +0 -0
  224. salome/kernel/_KernelLogger.so +0 -0
  225. salome/kernel/_KernelModuleCatalog.so +0 -0
  226. salome/kernel/_KernelSDS.so +0 -0
  227. salome/kernel/_KernelServices.so +0 -0
  228. salome/kernel/_NamingService.so +0 -0
  229. salome/kernel/_calcium.so +0 -0
  230. salome/kernel/_libNOTIFICATION.so +0 -0
  231. salome/kernel/_libSALOME_Comm.so +0 -0
  232. salome/kernel/_libSALOME_LifeCycleCORBA.so +0 -0
  233. salome/kernel/_pylauncher.so +0 -0
  234. salome/kernel/addToKillList_impl.py +127 -0
  235. salome/kernel/batchmode_salome.py +295 -0
  236. salome/kernel/calcium.py +866 -0
  237. salome/kernel/dsccalcium.py +98 -0
  238. salome/kernel/iparameters.py +255 -0
  239. salome/kernel/kernel_test.py +114 -0
  240. salome/kernel/killSalomeWithPort_impl.py +518 -0
  241. salome/kernel/killSalome_impl.py +94 -0
  242. salome/kernel/launchConfigureParser.py +1234 -0
  243. salome/kernel/launcher_proxy.py +122 -0
  244. salome/kernel/libNOTIFICATION.py +119 -0
  245. salome/kernel/libSALOME_Comm.py +85 -0
  246. salome/kernel/libSALOME_LifeCycleCORBA.py +232 -0
  247. salome/kernel/main.py +8 -0
  248. salome/kernel/nameserver.py +134 -0
  249. salome/kernel/nstest_idl.py +129 -0
  250. salome/kernel/omnipatch.py +136 -0
  251. salome/kernel/orbmodule.py +246 -0
  252. salome/kernel/parseConfigFile.py +261 -0
  253. salome/kernel/pylauncher.py +883 -0
  254. salome/kernel/runConsole_impl.py +224 -0
  255. salome/kernel/runSalomeCommon.py +418 -0
  256. salome/kernel/runSalomeNoServer_impl.py +48 -0
  257. salome/kernel/runSalomeOld_impl.py +603 -0
  258. salome/kernel/runSalomeOnDemand_impl.py +72 -0
  259. salome/kernel/runSalome_impl.py +341 -0
  260. salome/kernel/runSession.py +360 -0
  261. salome/kernel/runTests.py +90 -0
  262. salome/kernel/salome/__init__.py +646 -0
  263. salome/kernel/salome/kernel/__init__.py +111 -0
  264. salome/kernel/salome/kernel/datamodeler.py +363 -0
  265. salome/kernel/salome/kernel/deprecation.py +165 -0
  266. salome/kernel/salome/kernel/diclookup.py +137 -0
  267. salome/kernel/salome/kernel/enumerate.py +232 -0
  268. salome/kernel/salome/kernel/logconfig.py +27 -0
  269. salome/kernel/salome/kernel/logger.py +290 -0
  270. salome/kernel/salome/kernel/parametric/__init__.py +26 -0
  271. salome/kernel/salome/kernel/parametric/compo_utils.py +137 -0
  272. salome/kernel/salome/kernel/parametric/pyscript_utils.py +135 -0
  273. salome/kernel/salome/kernel/parametric/study_exchange_vars.py +285 -0
  274. salome/kernel/salome/kernel/pyunittester.py +184 -0
  275. salome/kernel/salome/kernel/services.py +267 -0
  276. salome/kernel/salome/kernel/studyedit.py +637 -0
  277. salome/kernel/salome/kernel/syshelper.py +116 -0
  278. salome/kernel/salome/kernel/termcolor.py +239 -0
  279. salome/kernel/salome/kernel/testdata.py +159 -0
  280. salome/kernel/salome/kernel/threadhelper.py +385 -0
  281. salome/kernel/salome/kernel/uiexception.py +121 -0
  282. salome/kernel/salome/kernel/unittester.py +89 -0
  283. salome/kernel/salomeContextUtils.py +353 -0
  284. salome/kernel/salomeContext_impl.py +731 -0
  285. salome/kernel/salome_ComponentGUI.py +92 -0
  286. salome/kernel/salome_genericobj.py +44 -0
  287. salome/kernel/salome_iapp.py +206 -0
  288. salome/kernel/salome_instance_impl.py +109 -0
  289. salome/kernel/salome_kernel_utils.py +88 -0
  290. salome/kernel/salome_notebook.py +183 -0
  291. salome/kernel/salome_psutil.py +94 -0
  292. salome/kernel/salome_pynode.py +74 -0
  293. salome/kernel/salome_study.py +347 -0
  294. salome/kernel/salome_test.py +56 -0
  295. salome/kernel/salome_utils.py +563 -0
  296. salome/kernel/salome_version.py +164 -0
  297. salome/kernel/searchFreePort.py +130 -0
  298. salome/kernel/server.py +154 -0
  299. salome/kernel/setenv_impl.py +240 -0
  300. salome/kernel/version_and_config.py +24 -0
  301. salome/share/salome/resources/kernel/Anita semi square.ttf +0 -0
  302. salome/share/salome/resources/kernel/CatalogModulePersonnel.xml_skel +24 -0
  303. salome/share/salome/resources/kernel/CatalogResources.xml +4 -0
  304. salome/share/salome/resources/kernel/KERNELCatalog.xml +102 -0
  305. salome/share/salome/resources/kernel/SALOMEDS_Resources +10 -0
  306. salome/share/salome/resources/kernel/ScriptsTemplate/SALOME_CM_LOCAL_MPI_LAN.py +19 -0
  307. salome/share/salome/resources/kernel/ScriptsTemplate/SALOME_CM_LOCAL_MPI_MPICH.py +18 -0
  308. salome/share/salome/resources/kernel/ScriptsTemplate/SALOME_CM_LOCAL_MPI_OPENMPI.py +21 -0
  309. salome/share/salome/resources/kernel/ScriptsTemplate/SALOME_CM_LOCAL_NO_MPI.py +25 -0
  310. salome/share/salome/resources/kernel/ScriptsTemplate/SALOME_CM_REMOTE.py +108 -0
  311. salome/share/salome/resources/kernel/ScriptsTemplate/SALOME_CM_REMOTE_OLD.py +115 -0
  312. salome/share/salome/resources/kernel/ScriptsTemplate/script_parameters.py +25 -0
  313. salome/share/salome/resources/kernel/app-template/CMakeLists.txt +125 -0
  314. salome/share/salome/resources/kernel/app-template/LICENCE +504 -0
  315. salome/share/salome/resources/kernel/app-template/README +0 -0
  316. salome/share/salome/resources/kernel/app-template/doc/CMakeLists.txt +31 -0
  317. salome/share/salome/resources/kernel/app-template/doc/README +1 -0
  318. salome/share/salome/resources/kernel/app-template/doc/conf.py.in +197 -0
  319. salome/share/salome/resources/kernel/app-template/doc/index.rst +14 -0
  320. salome/share/salome/resources/kernel/app-template/doc/intro.rst +4 -0
  321. salome/share/salome/resources/kernel/app-template/doc/link.rst +4 -0
  322. salome/share/salome/resources/kernel/app-template/resources/CMakeLists.txt +36 -0
  323. salome/share/salome/resources/kernel/app-template/resources/SalomeApp.xml.in +30 -0
  324. salome/share/salome/resources/kernel/app-template/resources/about.png +0 -0
  325. salome/share/salome/resources/kernel/app-template/resources/app_icon.png +0 -0
  326. salome/share/salome/resources/kernel/app-template/resources/app_logo.png +0 -0
  327. salome/share/salome/resources/kernel/app-template/resources/doc/CMakeLists.txt +27 -0
  328. salome/share/salome/resources/kernel/app-template/resources/doc/README +1 -0
  329. salome/share/salome/resources/kernel/app-template/resources/doc/sample.pdf +0 -0
  330. salome/share/salome/resources/kernel/app-template/resources/icon_about.png +0 -0
  331. salome/share/salome/resources/kernel/app-template/resources/splash.png +0 -0
  332. salome/share/salome/resources/kernel/app-template/src/CMakeLists.txt +22 -0
  333. salome/share/salome/resources/kernel/app-template/src/resources/CMakeLists.txt +34 -0
  334. salome/share/salome/resources/kernel/app-template/src/resources/LightApp_images.ts +23 -0
  335. salome/share/salome/resources/kernel/app-template/src/resources/LightApp_msg_en.ts +35 -0
  336. salome/share/salome/resources/kernel/app-template/src/resources/LightApp_msg_fr.ts +35 -0
  337. salome/share/salome/resources/kernel/app-template/src/resources/LightApp_msg_ja.ts +35 -0
  338. salome/share/salome/resources/kernel/app-template/src/tests/CMakeLists.txt +29 -0
  339. salome/share/salome/resources/kernel/app-template/src/tests/README +1 -0
  340. salome/share/salome/resources/kernel/app-template/src/tests/helloWorld.py +1 -0
  341. salome/share/salome/resources/kernel/background.png +0 -0
  342. salome/share/salome/resources/kernel/channel.cfg +278 -0
  343. salome/share/salome/resources/kernel/testLauncher.xml +10 -0
  344. salome.kernel-9.14.0.dist-info/METADATA +24 -0
  345. salome.kernel-9.14.0.dist-info/RECORD +399 -0
  346. salome.kernel-9.14.0.dist-info/WHEEL +6 -0
  347. salome.kernel-9.14.0.dist-info/entry_points.txt +2 -0
  348. salome.kernel.libs/libArgvKeeper-822351d5.so +0 -0
  349. salome.kernel.libs/libCOS4-b4544fb9.so.2.5 +0 -0
  350. salome.kernel.libs/libCOSDynamic4-618dbb1d.so.2.5 +0 -0
  351. salome.kernel.libs/libCalciumC-91a70951.so +0 -0
  352. salome.kernel.libs/libDF-281cc999.so +0 -0
  353. salome.kernel.libs/libLauncher-d5172385.so +0 -0
  354. salome.kernel.libs/libLauncherWrapHelper-b990b914.so +0 -0
  355. salome.kernel.libs/libOpUtil-b4b3b9b6.so +0 -0
  356. salome.kernel.libs/libRegistry-e24daafb.so +0 -0
  357. salome.kernel.libs/libResourcesManager-f4ef9548.so +0 -0
  358. salome.kernel.libs/libSALOMEBasics-f4d874ac.so +0 -0
  359. salome.kernel.libs/libSALOMELocalTrace-a3992e5b.so +0 -0
  360. salome.kernel.libs/libSALOMELog-55805468.so +0 -0
  361. salome.kernel.libs/libSalomeCalcium-781cb934.so +0 -0
  362. salome.kernel.libs/libSalomeCatalog-5b91a229.so +0 -0
  363. salome.kernel.libs/libSalomeCommunication-6013ebb8.so +0 -0
  364. salome.kernel.libs/libSalomeContainer-decf499e.so +0 -0
  365. salome.kernel.libs/libSalomeContainerServer-9c26efb9.so +0 -0
  366. salome.kernel.libs/libSalomeDS-fb6237e6.so +0 -0
  367. salome.kernel.libs/libSalomeDSCContainer-9aba4abc.so +0 -0
  368. salome.kernel.libs/libSalomeDSCSuperv-cb0c82c4.so +0 -0
  369. salome.kernel.libs/libSalomeDSCSupervBasic-5e119792.so +0 -0
  370. salome.kernel.libs/libSalomeDSClient-cfd124a5.so +0 -0
  371. salome.kernel.libs/libSalomeDSImpl-b0ca6717.so +0 -0
  372. salome.kernel.libs/libSalomeDatastream-755ff3cb.so +0 -0
  373. salome.kernel.libs/libSalomeGenericObj-2571fdbd.so +0 -0
  374. salome.kernel.libs/libSalomeHDFPersist-97851d0e.so +0 -0
  375. salome.kernel.libs/libSalomeIDLKernel-2eb1ed8e.so +0 -0
  376. salome.kernel.libs/libSalomeKernelHelpers-ac8d226c.so +0 -0
  377. salome.kernel.libs/libSalomeLauncher-773b54ed.so +0 -0
  378. salome.kernel.libs/libSalomeLifeCycleCORBA-3e113d61.so +0 -0
  379. salome.kernel.libs/libSalomeLoggerServer-973d3d94.so +0 -0
  380. salome.kernel.libs/libSalomeNS-d87194d5.so +0 -0
  381. salome.kernel.libs/libSalomeNotification-83bfb2ff.so +0 -0
  382. salome.kernel.libs/libSalomeORB-07883efb.so +0 -0
  383. salome.kernel.libs/libSalomePalm-b748443e.so +0 -0
  384. salome.kernel.libs/libSalomeResourcesManager-5a7077a0.so +0 -0
  385. salome.kernel.libs/libSalomeSDS-cc7aada7.so +0 -0
  386. salome.kernel.libs/libSalomeTestComponentEngine-ae724ce1.so +0 -0
  387. salome.kernel.libs/libTOOLSDS-82342bb4.so +0 -0
  388. salome.kernel.libs/libbatch-6b5b319f.so +0 -0
  389. salome.kernel.libs/libboost_atomic-489c2d94.so.1.81.0 +0 -0
  390. salome.kernel.libs/libboost_filesystem-e610b554.so.1.81.0 +0 -0
  391. salome.kernel.libs/libboost_system-4a7650ea.so.1.81.0 +0 -0
  392. salome.kernel.libs/libcppunit-1-17e77af1.12.so.1.0.0 +0 -0
  393. salome.kernel.libs/libhdf5-60e81d69.so.103.0.0 +0 -0
  394. salome.kernel.libs/liblzma-004595ca.so.5.2.2 +0 -0
  395. salome.kernel.libs/libomniDynamic4-9edc765d.so.2.5 +0 -0
  396. salome.kernel.libs/libomniORB4-4725824d.so.2.5 +0 -0
  397. salome.kernel.libs/libomnithread-99f9d0d3.so.4.1 +0 -0
  398. salome.kernel.libs/libwith_loggerTraceCollector-7ed0f3a0.so +0 -0
  399. salome.kernel.libs/libwith_loggerTraceCollector.so +0 -0
  400. salome.kernel.libs/libxml2-3998bec4.so.2.9.1 +0 -0
@@ -0,0 +1,48 @@
1
+ #! /usr/bin/env python3
2
+ # -*- coding: iso-8859-1 -*-
3
+ # Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
4
+ #
5
+ # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
6
+ # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
7
+ #
8
+ # This library is free software; you can redistribute it and/or
9
+ # modify it under the terms of the GNU Lesser General Public
10
+ # License as published by the Free Software Foundation; either
11
+ # version 2.1 of the License, or (at your option) any later version.
12
+ #
13
+ # This library is distributed in the hope that it will be useful,
14
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
+ # Lesser General Public License for more details.
17
+ #
18
+ # You should have received a copy of the GNU Lesser General Public
19
+ # License along with this library; if not, write to the Free Software
20
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
+ #
22
+ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23
+ #
24
+
25
+ ## @file killSalome.py
26
+ # @brief Forcibly stop all running %SALOME sessions.
27
+
28
+ """
29
+ Forcibly stop all running SALOME sessions.
30
+
31
+ To stop all SALOME sessions, do the following:
32
+
33
+ * in shell:
34
+
35
+ $ killSalome.py
36
+
37
+ * in Python script:
38
+
39
+ from killSalome import killAllPorts
40
+ killAllPorts()
41
+ """
42
+
43
+ # pragma pylint: disable=invalid-name
44
+
45
+ from salome.kernel.killSalome_impl import main, killAllPorts
46
+
47
+ if __name__ == '__main__':
48
+ main()
@@ -0,0 +1,56 @@
1
+ #! /usr/bin/env python3
2
+ # -*- coding: iso-8859-1 -*-
3
+ # Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
4
+ #
5
+ # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
6
+ # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
7
+ #
8
+ # This library is free software; you can redistribute it and/or
9
+ # modify it under the terms of the GNU Lesser General Public
10
+ # License as published by the Free Software Foundation; either
11
+ # version 2.1 of the License, or (at your option) any later version.
12
+ #
13
+ # This library is distributed in the hope that it will be useful,
14
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
+ # Lesser General Public License for more details.
17
+ #
18
+ # You should have received a copy of the GNU Lesser General Public
19
+ # License along with this library; if not, write to the Free Software
20
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
+ #
22
+ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23
+ #
24
+
25
+ ## @file killSalomeWithPort.py
26
+ # @brief Forcibly stop %SALOME processes from given session(s).
27
+ #
28
+ # The sessions are indicated by their ports on the command line as in below example:
29
+ # @code
30
+ # killSalomeWithPort.py 2811 2815
31
+ # @endcode
32
+
33
+ """
34
+ Forcibly stop given SALOME session(s).
35
+
36
+ To stop one or more SALOME sessions, specify network ports they are bound to,
37
+ for example:
38
+
39
+ * in shell
40
+
41
+ $ killSalomeWithPort.py 2811 2815
42
+
43
+ * in Python script:
44
+
45
+ from killSalomeWithPort import killMyPort
46
+ killMyPort(2811, 2815)
47
+
48
+ """
49
+
50
+ # pragma pylint: disable=invalid-name
51
+
52
+ from salome.kernel.killSalomeWithPort_impl import killMyPort, getPiDict, killUnkilledProcesses, \
53
+ killProcessSSL, cleanApplication, main
54
+
55
+ if __name__ == '__main__':
56
+ main()
@@ -0,0 +1,104 @@
1
+ #!/usr/bin/env python3
2
+ # Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
3
+ #
4
+ # This library is free software; you can redistribute it and/or
5
+ # modify it under the terms of the GNU Lesser General Public
6
+ # License as published by the Free Software Foundation; either
7
+ # version 2.1 of the License, or (at your option) any later version.
8
+ #
9
+ # This library is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
+ # Lesser General Public License for more details.
13
+ #
14
+ # You should have received a copy of the GNU Lesser General Public
15
+ # License along with this library; if not, write to the Free Software
16
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
+ #
18
+ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19
+ #
20
+
21
+ #################################################################################
22
+ #
23
+ # File: prepare_generating_doc.py
24
+ # Author: Anastasiya NIKOLAEVA, Open CASCADE S.A.S
25
+ #
26
+ #################################################################################
27
+ #
28
+ # Pre-process Python module for documentation generation by doxygen.
29
+ # The script removes the staff that should not appear in the resulting
30
+ # documentation.
31
+ #
32
+ # Current the script does:
33
+ # 1. remove Python documentation in triple double quotes (like """some_comments""")
34
+ #
35
+ # Usage: prepare_generating_doc.py [-o <output_file>] <input_file>
36
+ #
37
+ # If <output_file> is not specified, it is generated in the current directory.
38
+ #
39
+ ###############################################################################
40
+
41
+ import os, sys
42
+
43
+ def main(input_file, output_file = None):
44
+
45
+ # open input file
46
+ try:
47
+ infile = open(input_file, 'rb')
48
+ except Exception:
49
+ sys.exit("File %s is not found" % input_file)
50
+ pass
51
+
52
+ if not output_file: output_file = os.path.basename(input_file)
53
+
54
+ # open output file
55
+ try:
56
+ outfile = open(output_file, 'wb')
57
+ except Exception:
58
+ sys.exit("File %s cannot be opened for write" % output_file)
59
+ pass
60
+
61
+ # parse input file
62
+
63
+ isCom = False
64
+ isShift = False
65
+
66
+ for line in infile.readlines():
67
+ # 1. remove comments like """some_comments"""
68
+ n = line.find(b'"""')
69
+ n1 = line[(n+2):].find(b'"""')
70
+ if (n > -1) and (n1 > -1):
71
+ continue
72
+ if isCom:
73
+ if n > -1:
74
+ isCom = False
75
+ pass
76
+ continue
77
+ else:
78
+ if n > -1:
79
+ isCom = True
80
+ continue
81
+ pass
82
+
83
+ # write resulting line
84
+ outfile.write(line)
85
+
86
+ pass # end of for
87
+
88
+ # close input and output files
89
+ infile.close()
90
+ outfile.close()
91
+
92
+ pass
93
+
94
+ if __name__ == "__main__":
95
+ import argparse
96
+ parser = argparse.ArgumentParser()
97
+ h = "Output file (if not specified, generated in the current directory)"
98
+ parser.add_argument("-o", "--output", dest="output",
99
+ action="store", default=None, metavar="file",
100
+ help=h)
101
+ parser.add_argument('input_file')
102
+ args = parser.parse_args()
103
+ main( args.input_file, args.output )
104
+ pass
@@ -0,0 +1,184 @@
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 *-
3
+
4
+ ##############################################################
5
+ # This script reduce the pythonpath of salome environement. #
6
+ # The single input of this script is install path of salome. # #
7
+ ##############################################################
8
+
9
+ import argparse
10
+ import glob
11
+ import logging
12
+ import os
13
+ import shutil
14
+ import sys
15
+
16
+ from parseConfigFile import parseConfigFile
17
+
18
+ logging.basicConfig()
19
+ logger = logging.getLogger(os.path.basename(__file__))
20
+ logger.setLevel(logging.INFO)
21
+
22
+ IGNORE = ['__pycache__', '__init__.py', '.yamm', 'NEWS', 'README']
23
+
24
+
25
+ def remove(path):
26
+ logger.debug('Removing %r' % (path))
27
+ if os.path.islink(path):
28
+ os.unlink(path)
29
+ elif os.path.isdir(path):
30
+ shutil.rmtree(path)
31
+ else:
32
+ os.remove(path)
33
+
34
+
35
+ def copy(src, dst):
36
+ logger.debug('Copy %r to %r' % (src, dst))
37
+ if os.path.exists(dst):
38
+ remove(dst)
39
+ if not os.path.isdir(src):
40
+ shutil.copyfile(src, dst)
41
+ else:
42
+ shutil.copytree(src, dst)
43
+
44
+
45
+ def copy_or_link(src, dst):
46
+ if sys.platform in ('linux', 'linux2'):
47
+ if os.path.exists(dst):
48
+ current_dst = os.readlink(dst)
49
+ logger.warning('Destination link %r already exists and links to %r.' % (dst, current_dst))
50
+ logger.warning('It is overwritten to %r' % (src))
51
+ remove(dst)
52
+ os.symlink(src, dst)
53
+ else:
54
+ copy(src, dst)
55
+
56
+
57
+ if sys.version_info[0] < 3:
58
+ raise Exception("Must be using Python 3")
59
+
60
+
61
+ def main(salome_install_dir, context_file_name, env_file_name, ignore=None):
62
+ if ignore:
63
+ ignore = IGNORE + ignore
64
+ else:
65
+ ignore = IGNORE[::]
66
+
67
+ # new pythonpath initiation; creation a directory containing all python module for salome
68
+ salome_install_dir=os.path.abspath(salome_install_dir)
69
+ pythonpath_common = os.path.join(salome_install_dir, 'python_modules')
70
+ if os.path.exists(pythonpath_common):
71
+ remove(pythonpath_common)
72
+ os.mkdir(pythonpath_common)
73
+ new_pythonpath_list = []
74
+ new_pythonpath_list.append(pythonpath_common)
75
+
76
+ # parsing configuration file (cfg) to get old pythonpath
77
+ reserved_key = ['PYTHONPATH']
78
+ context_file = os.path.join(salome_install_dir, context_file_name)
79
+ context_file_sh = os.path.join(salome_install_dir, env_file_name)
80
+ backup_context_file = context_file + '.backup'
81
+ backup_context_file_sh = context_file_sh + '.backup'
82
+ if os.path.exists(backup_context_file):
83
+ logger.info("Recover context file %r from backup" % (context_file))
84
+ copy(backup_context_file, context_file)
85
+ if os.path.exists(backup_context_file_sh):
86
+ logger.info("Recover env file %r from backup" % (context_file_sh))
87
+ copy(backup_context_file_sh, context_file_sh)
88
+
89
+ if not os.path.exists(context_file) or not os.path.exists(context_file_sh):
90
+ raise Exception("Context and env files are not found in the salome install. "
91
+ "Verify if %s and %s are present in the salome install path: %s"
92
+ % (context_file_name, env_file_name, salome_install_dir))
93
+ configInfo = parseConfigFile(context_file, reserved_key)
94
+ configVars = configInfo.outputVariables
95
+ reservedDict = configInfo.reservedValues
96
+ configVarsDict = {k: v for (k, v) in configVars}
97
+
98
+ # Synchronize new pythonpath with the old
99
+ # Copy all the .egg files to the new directory of python module and list them in new single easy-install.pth
100
+ # If the module hasn't .egg file, we must copy all files from its pythonpath and paste them in the python module directory
101
+ # It's complicated to reduce pythonpath of paraview so for now we keep the old paraview pythonpath
102
+ pattern = "*.egg"
103
+ with open(os.path.join(pythonpath_common, 'easy-install.pth'), 'w') as easy_install:
104
+ for dirs in reservedDict[reserved_key[0]]:
105
+ for d in dirs.split(':'):
106
+ egg_dir_list = glob.glob(os.path.join(d, pattern))
107
+ if egg_dir_list:
108
+ for egg_dir in egg_dir_list:
109
+ egg_file = egg_dir.split('/')[-1]
110
+ new_dir = os.path.join(pythonpath_common, egg_file)
111
+ copy_or_link(egg_dir, new_dir)
112
+ easy_install.write("./%s\n" % egg_file)
113
+ else:
114
+ for f in os.listdir(d):
115
+ if f in ignore:
116
+ continue
117
+ full_file_srcpath = os.path.join(d, f)
118
+ full_file_dstpath = os.path.join(pythonpath_common, f)
119
+ copy_or_link(full_file_srcpath, full_file_dstpath)
120
+ # In the case of matplotlib, some prerequis are found matplotlib_root. They also need to be put in new directory of module python
121
+ try:
122
+ with open(os.path.join(pythonpath_common, 'easy-install.pth'), 'a') as easy_install:
123
+ MATPLOTLIB_ROOT = configVarsDict['MATPLOTLIB_HOME']
124
+ for d in os.listdir(MATPLOTLIB_ROOT):
125
+ if ".egg" in d:
126
+ copy_or_link(os.path.join(MATPLOTLIB_ROOT, d), os.path.join(pythonpath_common, d))
127
+ easy_install.write("./%s\n" % d)
128
+ except KeyError:
129
+ logger.debug("Not found MATPLOTLIB_HOME variable in the .cfg")
130
+ logger.debug("Matplotlib isn't compiled with salome or maybe it is in the system package ")
131
+ logger.debug("If matplotlib is compiled with salome, we need define its install path with variable MATPLOTLIB_HOME")
132
+
133
+ # Fix for correct imports
134
+ import setuptools
135
+ try:
136
+ setup_tools_path = os.path.dirname(setuptools.__file__)
137
+ except AttributeError:
138
+ setup_tools_path = os.path.dirname(setuptools.__path__._path[0])
139
+ del setuptools
140
+ site_patch = os.path.join(setup_tools_path, 'site-patch.py')
141
+ shutil.copyfile(site_patch, os.path.join(pythonpath_common, "site.py"))
142
+
143
+ # Overwrite salome_context.cfg
144
+ # Backup context and env files
145
+ copy(context_file, backup_context_file)
146
+ copy(context_file_sh, backup_context_file_sh)
147
+ with open(context_file, 'r') as f:
148
+ lines = f.readlines()
149
+ with open(context_file, 'w') as f:
150
+ for line in lines:
151
+ if "ADD_TO_PYTHONPATH" not in line:
152
+ f.write(line)
153
+ with open(context_file, 'a') as f:
154
+ f.write("#------ NEWPYTHONPATH ------\n")
155
+ for p in new_pythonpath_list:
156
+ f.write("ADD_TO_PYTHONPATH: %s\n" % p)
157
+
158
+ # Overwrite salome_prerequisites.sh
159
+ with open(context_file_sh, 'r') as f:
160
+ lines = f.readlines()
161
+ with open(context_file_sh, 'w') as f:
162
+ for line in lines:
163
+ if "PYTHONPATH" not in line:
164
+ f.write(line)
165
+ with open(context_file_sh, 'a') as f:
166
+ f.write("#------ NEWPYTHONPATH ------\n")
167
+ for p in new_pythonpath_list:
168
+ f.write("export PYTHONPATH=%s:${PYTHONPATH}\n" % p)
169
+
170
+
171
+ if __name__ == '__main__':
172
+ parser = argparse.ArgumentParser()
173
+ parser.add_argument('-v', '--verbose', action='store_true', help='Verbose mode')
174
+ parser.add_argument('-c', '--context-file', default='salome_context.cfg',
175
+ help='Context file name (default: %(default)s)')
176
+ parser.add_argument('-e', '--env-file', default='salome_prerequisites.sh',
177
+ help='Env file name (default: %(default)s)')
178
+ parser.add_argument('-i', '--ignore', nargs='*',
179
+ help='List of comma separated files to ignore')
180
+ parser.add_argument(dest='salome_install_dir', help='Directory of context and env files')
181
+ args = parser.parse_args()
182
+ if args.verbose:
183
+ logger.setLevel(logging.DEBUG)
184
+ main(args.salome_install_dir, args.context_file, args.env_file, args.ignore)
@@ -0,0 +1,39 @@
1
+ #! /usr/bin/env python3
2
+ # -*- coding: iso-8859-1 -*-
3
+ # Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
4
+ #
5
+ # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
6
+ # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
7
+ #
8
+ # This library is free software; you can redistribute it and/or
9
+ # modify it under the terms of the GNU Lesser General Public
10
+ # License as published by the Free Software Foundation; either
11
+ # version 2.1 of the License, or (at your option) any later version.
12
+ #
13
+ # This library is distributed in the hope that it will be useful,
14
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
+ # Lesser General Public License for more details.
17
+ #
18
+ # You should have received a copy of the GNU Lesser General Public
19
+ # License along with this library; if not, write to the Free Software
20
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
+ #
22
+ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23
+ #
24
+
25
+ import sys
26
+ import pickle
27
+
28
+ from runConsole_impl import connect, _prompt
29
+
30
+
31
+ if __name__ == "__main__":
32
+ if len(sys.argv) == 2:
33
+ cmdBytes = sys.argv[1].encode()
34
+ cmd = pickle.loads(cmdBytes)
35
+ sys.argv = []
36
+ _prompt(commands=cmd)
37
+ else:
38
+ print("runConsole.py: incorrect usage!")
39
+ #
@@ -0,0 +1,58 @@
1
+ #! /bin/sh
2
+ # Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
3
+ #
4
+ # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
5
+ # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6
+ #
7
+ # This library is free software; you can redistribute it and/or
8
+ # modify it under the terms of the GNU Lesser General Public
9
+ # License as published by the Free Software Foundation; either
10
+ # version 2.1 of the License, or (at your option) any later version.
11
+ #
12
+ # This library is distributed in the hope that it will be useful,
13
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ # Lesser General Public License for more details.
16
+ #
17
+ # You should have received a copy of the GNU Lesser General Public
18
+ # License along with this library; if not, write to the Free Software
19
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
+ #
21
+ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22
+ #
23
+
24
+ # print the help message ====================================
25
+
26
+ # test $@="-h" -o -z $@
27
+
28
+ hh=0
29
+
30
+ if test "$#" = "0";then
31
+ hh=1
32
+ else
33
+ for a in $@; do
34
+ if test "$a" = "-h"; then
35
+ hh=1
36
+ fi
37
+ done
38
+ fi
39
+
40
+ if test "$hh" = "1" ; then
41
+ echo ""
42
+ echo "Usage : "
43
+ echo ""
44
+ echo " to run IDLparser:"
45
+ echo ""
46
+ echo " $0 -Wbcatalog=<my_catalog.xml>[,icon=<pngfile>][,version=<num>][,author=<name>][,name=<component_name>][,remove=component_name] <file.idl> "
47
+ echo ""
48
+ echo " to have omniidl help:"
49
+ echo ""
50
+ echo " $0 -u "
51
+ echo ""
52
+ exit 1
53
+ fi
54
+ #============================================================
55
+
56
+ # omiidl ====================================================
57
+ omniidl -bIDLparser -I ${KERNEL_ROOT_DIR}/idl/salome $@
58
+ #============================================================
@@ -0,0 +1,101 @@
1
+ # Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
2
+ #
3
+ # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4
+ # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5
+ #
6
+ # This library is free software; you can redistribute it and/or
7
+ # modify it under the terms of the GNU Lesser General Public
8
+ # License as published by the Free Software Foundation; either
9
+ # version 2.1 of the License, or (at your option) any later version.
10
+ #
11
+ # This library is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ # Lesser General Public License for more details.
15
+ #
16
+ # You should have received a copy of the GNU Lesser General Public
17
+ # License along with this library; if not, write to the Free Software
18
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
+ #
20
+ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21
+ #
22
+
23
+ import os
24
+ from optparse import OptionParser
25
+ import subprocess
26
+ from salome_utils import getUserName
27
+ from salomeContextUtils import getShortAndExtraArgs
28
+
29
+ # Use to display newlines (\n) in epilog
30
+ class MyParser(OptionParser):
31
+ def format_epilog(self, formatter):
32
+ return self.epilog
33
+ #
34
+ #
35
+ # --- set the OMNIORB_CONFIG file and environment relative to this run of SALOME
36
+ def _writeConfigFile(port, host):
37
+ path = os.environ['OMNIORB_USER_PATH']
38
+ kwargs = {'with_username' : getUserName()}
39
+
40
+ from ORBConfigFile import writeORBConfigFile
41
+ [ filename, msgSize ] = writeORBConfigFile(path, host, port, kwargs)
42
+
43
+ os.environ['OMNIORB_CONFIG'] = filename
44
+ #
45
+
46
+ def runRemote(args):
47
+ if args is None:
48
+ args = []
49
+ usage = "Usage: salome runremote [options] -- command"
50
+ epilog = """\n
51
+ Execute command in SALOME environment from a remote call, ssh or rsh.
52
+ salome runremote is used notably to launch containers from a distant salome session.
53
+
54
+ For example:
55
+ salome remote -m xxx.cea.fr -p 2810 -- ls /tmp >/dev/null 2>&1
56
+ -> execute the command ls /tmp >/dev/null 2>&1
57
+
58
+ salome remote -m xxx.cea.fr -p 2810 -- SALOME_Container Cont_S
59
+ -ORBInitRef NameService=IOR:01...
60
+ -> starts a Salome container called Cont_S connected to port 2810
61
+ of xxx.cea.fr
62
+ """
63
+ parser = MyParser(usage=usage, epilog=epilog)
64
+ parser.add_option("-p", "--port", metavar="<port>", default="2810",
65
+ action="store", type="string", dest="port",
66
+ help="The port to connect to."
67
+ )
68
+ parser.add_option("-m", "--machine", metavar="<machine>",
69
+ action="store", type="string", dest="host",
70
+ default="localhost",
71
+ help="The machine where salome was launched."
72
+ )
73
+ parser.add_option('-d', '--directory', dest="directory",
74
+ metavar="<directory>", default=None,
75
+ help="The directory where to execute the command."
76
+ )
77
+
78
+ # separate runRemote args from the command to run (given after --)
79
+ short_args, extra_args = getShortAndExtraArgs(args)
80
+ try:
81
+ (options, args) = parser.parse_args(short_args)
82
+ except Exception as e:
83
+ print(e)
84
+ print(usage)
85
+ print(epilog)
86
+ return
87
+
88
+ port = options.port
89
+ host = options.host
90
+ directory = options.directory
91
+ command=extra_args[1:]
92
+
93
+ _writeConfigFile(port, host)
94
+ os.environ['NSPORT'] = port
95
+ os.environ['NSHOST'] = host
96
+ print("[ Remote Command ] ", " ".join(command))
97
+ cmd = subprocess.Popen(command, cwd=directory)
98
+ cmd.wait()
99
+ return
100
+ #
101
+
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env python3
2
+ # -*- coding: iso-8859-1 -*-
3
+ # Copyright (C) 2022-2024 CEA, EDF, OPEN CASCADE
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
+ #
19
+ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20
+ #
21
+
22
+ ## @package runSalome
23
+ # \brief Module that provides services to launch SALOME
24
+ #
25
+
26
+ from salome.kernel.runSalome_impl import runSalome
27
+
28
+ if __name__ == "__main__":
29
+ runSalome()
30
+ #
@@ -0,0 +1,24 @@
1
+ #! /usr/bin/env python3
2
+ # Copyright (C) 2021-2024 CEA, EDF
3
+ #
4
+ # This library is free software; you can redistribute it and/or
5
+ # modify it under the terms of the GNU Lesser General Public
6
+ # License as published by the Free Software Foundation; either
7
+ # version 2.1 of the License, or (at your option) any later version.
8
+ #
9
+ # This library is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
+ # Lesser General Public License for more details.
13
+ #
14
+ # You should have received a copy of the GNU Lesser General Public
15
+ # License along with this library; if not, write to the Free Software
16
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
+ #
18
+ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19
+ #
20
+
21
+ from salome.kernel.runSalomeNoServer_impl import NoSessionServer, main
22
+
23
+ if __name__ == "__main__":
24
+ main()
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env python3
2
+ # -*- coding: iso-8859-1 -*-
3
+ # Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
4
+ #
5
+ # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
6
+ # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
7
+ #
8
+ # This library is free software; you can redistribute it and/or
9
+ # modify it under the terms of the GNU Lesser General Public
10
+ # License as published by the Free Software Foundation; either
11
+ # version 2.1 of the License, or (at your option) any later version.
12
+ #
13
+ # This library is distributed in the hope that it will be useful,
14
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
+ # Lesser General Public License for more details.
17
+ #
18
+ # You should have received a copy of the GNU Lesser General Public
19
+ # License along with this library; if not, write to the Free Software
20
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
+ #
22
+ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23
+ #
24
+
25
+ ## @package runSalome
26
+ # \brief Module that provides services to launch SALOME
27
+ #
28
+
29
+ from salome.kernel.runSalomeOld_impl import runSalome, LoggerServer, process_id, \
30
+ RegistryServer, CatalogServer, LauncherServer
31
+
32
+ # -----------------------------------------------------------------------------
33
+
34
+ if __name__ == "__main__":
35
+ runSalome()
36
+ #