]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PAL9538
authorvsr <vsr@opencascade.com>
Wed, 9 Nov 2005 13:28:18 +0000 (13:28 +0000)
committervsr <vsr@opencascade.com>
Wed, 9 Nov 2005 13:28:18 +0000 (13:28 +0000)
bin/addToKillList.py

index 2d26f669871a93420d686db53f9365dcad47de48..7764ba01a2f630b3a1abad0b0c04fc26abab796d 100755 (executable)
@@ -29,7 +29,8 @@ def findFileDict():
     
 def addToKillList(command_pid, command):
     my_port = findFileDict()
-    filedict=os.getenv("HOME")+'/'+os.getenv('USER')+"_"+str(my_port)+'_SALOME_pidict'
+    from killSalomeWithPort import getPiDict
+    filedict=getPiDict(my_port)
     try:
         fpid=open(filedict, 'r')
         process_ids=pickle.load(fpid)
@@ -64,7 +65,8 @@ def addToKillList(command_pid, command):
 
 def killList():
     my_port = findFileDict()
-    filedict=os.getenv("HOME")+'/'+os.getenv('USER')+"_"+str(my_port)+'_SALOME_pidict'
+    from killSalomeWithPort import getPiDict
+    filedict=getPiDict(my_port)
     try:
         fpid=open(filedict, 'r')
         process_ids=pickle.load(fpid)