#sys.argv += ["--portkill=" + port]
sys.argv += ["--show-desktop=1"]
sys.argv += ["--splash=0"]
- sys.argv += ["--modules=MED,VISU,PARAVIS"]
+ sys.argv += ["--modules=MED,PARAVIS"]
+ sys.argv += ["--standalone=study"]
+ sys.argv += ["--embedded=SalomeAppEngine,cppContainer,registry,moduleCatalog"]
clt, d = runSalome.main()
port = d['port']
self.port = port
# Run Salome
salome_session = SalomeSession()
salome.salome_init()
-
-# Create new study
-print "Creating new study...",
-aStudy = salome.myStudyManager.NewStudy("Study1")
-if aStudy is None:
- raise RuntimeError("FAILED")
-else:
- print "OK"
-
-salome.myStudy = aStudy
import searchFreePort
import subprocess
-import sys
+import sys, os
import signal
import killSalomeWithPort
+## TEMP >>> ###
+if not os.getenv("OMNIORB_USER_PATH"):
+ os.environ["OMNIORB_USER_PATH"] = os.path.realpath(os.path.expanduser('~'))
+ pass
+## <<< TEMP ###
+
+
args = {}
searchFreePort.searchFreePort(args)
port = args['port']