]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
IPAL21912 WinTC5.1.4: kill_salome.bat doesn't kill Salome
authordmv <dmv@opencascade.com>
Thu, 9 Sep 2010 14:30:45 +0000 (14:30 +0000)
committerdmv <dmv@opencascade.com>
Thu, 9 Sep 2010 14:30:45 +0000 (14:30 +0000)
bin/killSalomeWithPort.py

index 4e1cbbd4f9324cf659193b4db88384a0e9de0728..38e0cf710d3fc11beabaaf60ca3202c67ed18ffa 100755 (executable)
@@ -146,7 +146,12 @@ def killMyPort(port):
         fpid = open(filedict, 'r')
         #
         from salome_utils import generateFileName
-        fpidomniNames = generateFileName(os.path.join('/tmp/logs', os.getenv('USER')),
+       if sys.platform == "win32":
+            username = os.getenv( "USERNAME" )
+       else:
+            username = os.getenv('USER')
+        path = os.path.join('/tmp/logs', username)
+        fpidomniNames = generateFileName(path,
                                          prefix="",
                                          suffix="Pid_omniNames",
                                          extension="log",