SalomeAppSLConfig=os.getenv("SalomeAppConfig","")
os.putenv("SalomeAppSLConfig", SalomeAppSLConfig)
-if __name__ == "__main__":
+def main():
args, modules_list, modules_root_dir = setenv.get_config()
mySessionServ = NoSessionServer(args, modules_list, modules_root_dir)
mySessionServ.setpath(modules_list, modules_root_dir)
mySessionServ.run()
+
+if __name__ == "__main__":
+ main()
availableCommands = {
'start' : '_runAppli',
+ 'sessionless' : '_sessionless',
'context' : '_setContext',
'shell' : '_runSession',
'remote' : '_runRemote',
return 0
#
+ def _sessionless(self, args=None):
+ if args is None:
+ args = []
+ sys.argv = ['runSalome'] + args
+ import runSalomeNoServer
+ runSalomeNoServer.main()
+ #
+
def _setContext(self, args=None):
salome_context_set = os.getenv("SALOME_CONTEXT_SET")
if salome_context_set: