Fix windows regex for PID.

This commit is contained in:
Dain Nilsson 2016-03-31 16:18:25 +02:00
parent 02ae231162
commit 33689879af

View File

@ -199,7 +199,7 @@ def _get_pids_osx():
def _get_pids_win():
pid_pattern = re.compile(r'PID_([0-9A-F])')
pid_pattern = re.compile(r'PID_([0-9A-F]{4})')
pids = []
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW