From 06ce9b4766f883de31d9b7a2e77ea68ebf73bf3f Mon Sep 17 00:00:00 2001 From: Min Xu Date: Thu, 30 Jul 2015 16:42:19 +0800 Subject: [PATCH] 0730 --- python/scriptUtils/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/scriptUtils/utils.py b/python/scriptUtils/utils.py index 4281a9b..a1d6265 100644 --- a/python/scriptUtils/utils.py +++ b/python/scriptUtils/utils.py @@ -49,8 +49,8 @@ def get_state(): def get_app_pid(pkg_name): if system is "Windows": string = shell("ps | findstr %s$" %pkg_name).stdout.read() - - string = shell("ps | grep -w %s" %pkg_name).stdout.read() + else: + string = shell("ps | grep -w %s" %pkg_name).stdout.read() if string == '': return "the process doesn't exist."