+# -*- coding: iso-8859-1 -*-
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
#
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+## @package salome_session
+# \brief Module that provides the SalomeSession object that helps to launch
+# a SALOME script session
+#
+#
+
import os
import sys
import string
msg = ""
msg += "Can not find a free port to launch omniNames\n"
msg += "Kill the running servers and try again.\n"
- raise msg
+ raise RuntimeError, msg
NSPORT = NSPORT+1
pass
os.environ['NSHOST'] = hostname
class SalomeSession(object):
+ """Salome session launcher"""
import runSalome
import killSalomeWithPort
import killSalome