]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
killSalome.py doesn't work with the new portmanager.
authorrnv <rnv@opencascade.com>
Mon, 7 Apr 2014 09:53:44 +0000 (13:53 +0400)
committerrnv <rnv@opencascade.com>
Mon, 7 Apr 2014 09:53:44 +0000 (13:53 +0400)
bin/killSalome.py
bin/killSalomeWithPort.py

index ef06bd45fce94fdad3e76c5183490a1e2b91c58d..0c22df0c02f0ef05df21c5cf1a7a62c8be067ab2 100755 (executable)
@@ -47,7 +47,7 @@ def killAllPorts():
     #if hostname in fpidict:
     #    fpidict = fpidict.replace(hostname, shostname+".*")
     fpidict   = fpidict.replace('#####', '(\d*)')
-    fnamere   = re.compile("^%s$" % fpidict)
+    fnamere   = re.compile("^%s" % fpidict)
     try:
         for f in os.listdir(dirpidict):
             mo = fnamere.match(f)
@@ -94,5 +94,11 @@ def killAllPorts():
     pass
 
 if __name__ == "__main__":
+    try:
+        from salomeLauncherUtils import setOmniOrbUserPath
+        setOmniOrbUserPath()
+    except Exception, e:
+        print e
+        sys.exit(1)
     killAllPorts()
     pass
index fe36a1e782eb8fd1ef8d13b91730cab2465bc525..c28fba52a5496365830c1e955a234bfa4ab6f992 100755 (executable)
@@ -407,6 +407,12 @@ if __name__ == "__main__":
             pass
         sys.exit(0)
         pass
+    try:
+        from salomeLauncherUtils import setOmniOrbUserPath
+        setOmniOrbUserPath()
+    except Exception, e:
+        print e
+        sys.exit(1)
     for port in sys.argv[1:]:
         killMyPort(port)
         pass