X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=bin%2FkillSalomeWithPort.py;fp=bin%2FkillSalomeWithPort.py;h=d30d030b9739706eb830df48a042b0c96f4a53c6;hb=665f7c0f82a153e45c9845bae33cdb891839d805;hp=a845475cee453b8cca6b3b19d1156367a4296741;hpb=c2d596a8d7181d3c3560cb5810985377b8884e32;p=modules%2Fkernel.git diff --git a/bin/killSalomeWithPort.py b/bin/killSalomeWithPort.py index a845475ce..d30d030b9 100755 --- a/bin/killSalomeWithPort.py +++ b/bin/killSalomeWithPort.py @@ -404,7 +404,7 @@ def __checkUnkilledProcesses(): def _checkUserName(_process): # The following is a workaround for Windows on which # psutil.Process().username() returns 'usergroup' + 'username' - return getUserName() == _process.username() + return getUserName() == _process.username().split('\\')[-1] def _getDictfromOutput(_processes, _wildcard=None): for _process in psutil.process_iter(['name', 'username']):