]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fixing of PAL9090 bug: save Serser's pids not to the "/tmp" directory, but to the...
authormpv <mpv@opencascade.com>
Wed, 8 Jun 2005 06:49:55 +0000 (06:49 +0000)
committermpv <mpv@opencascade.com>
Wed, 8 Jun 2005 06:49:55 +0000 (06:49 +0000)
bin/killSalome.py
bin/killSalomeWithPort.py
bin/runSalome.py

index 96e923980773f150248c9f98a6363f9b44742cc9..7ed1d63725772a1f8904373028f2982ba796e19d 100755 (executable)
@@ -5,7 +5,7 @@ from killSalomeWithPort import killMyPort
 
 def killAllPorts():
     user = os.getenv('USER')
-    for file in os.listdir("/tmp"):
+    for file in os.listdir(os.getenv("HOME")):
         l = string.split(file, "_")
         if len(l) >= 4:
             if file[:len(user)] == user:
index 7c8dcd2ed1800c80f269142caef2488c702616c4..bf02709cf6e1480678abea387ac9bf4902407bea 100755 (executable)
@@ -3,7 +3,7 @@ import os, sys, pickle, signal, commands
 
 ########## kills all salome processes with the given port ##########
 def killMyPort(port):
-    filedict='/tmp/'+os.getenv('USER')+"_"+port+'_SALOME_pidict'
+    filedict=os.getenv("HOME")+'/'+os.getenv('USER')+"_"+port+'_SALOME_pidict'
     found = 0
     try:
         fpid=open(filedict, 'r')
index 055268c56ccc5f976f3a529c982d50a8059e4263..a9bd9237044a8d24135277535ae1b939f4acc4dc 100755 (executable)
@@ -674,7 +674,7 @@ def useSalome(args, modules_list, modules_root_dir):
         
     #print process_id
     
-    filedict = '/tmp/' + os.getenv('USER') + "_" + str(args['port']) \
+    filedict = os.getenv("HOME") + '/' + os.getenv('USER') + "_" + str(args['port']) \
              + '_' + args['appname'].upper() + '_pidict'
    
     process_ids = []