Remove leftover debugging print.
This commit is contained in:
parent
f279f0a75d
commit
775973821c
1 changed files with 0 additions and 5 deletions
|
|
@ -5,11 +5,6 @@ def getpid(process_name):
|
|||
pids = []
|
||||
target = process_name.lower()
|
||||
for process in psutil.process_iter():
|
||||
# print(dir(process))
|
||||
try:
|
||||
print(process.cmdline())
|
||||
except:
|
||||
pass
|
||||
if process.name().lower() == target:
|
||||
pids.append(process.pid)
|
||||
return pids
|
||||
|
|
|
|||
Loading…
Reference in a new issue