# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# retrieve current processes dictionary
from killSalomeWithPort import getPiDict
if port is None: port=findFileDict()
- try:
- import PortManager
- filedict = getPiDict(port, hidden=True, with2809pid=True)
- except:
- filedict=getPiDict(port)
+ filedict = getPiDict(port)
try:
with open(filedict, 'r') as fpid:
pass
if already_in: break
pass
+
# add process to the dictionary
if not already_in:
import types
# retrieve processes dictionary
from killSalomeWithPort import getPiDict
if port is None: port=findFileDict()
+
# new-style dot-prefixed pidict file
- filedict=getPiDict(port, hidden=True)
+ filedict=getPiDict(port)
# provide compatibility with old-style pidict file (not dot-prefixed)
if not os.path.exists(filedict): filedict = getPiDict(port, hidden=False)
+
try:
with open(filedict, 'r') as fpid:
process_ids=pickle.load(fpid)