#! /usr/bin/env python
# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
#
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
- port - port number
"""
from salome_utils import getShortHostName, getHostName
- print "Terminating SALOME on port %d..."%(port)
+ print "Terminating SALOME on port %s..."%(port)
# try to shutdown session normally
import threading, time
all_files = glob.glob("%s*"%filedict)
for f in all_files:
__killMyPort(port, f)
- except:
+ except ImportError:
# new-style dot-prefixed pidict file
filedict = getPiDict(port, hidden=True)
# provide compatibility with old-style pidict file (not dot-prefixed)