mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-28 19:03:17 +01:00
fixed pidof on mac os
This commit is contained in:
parent
c823e3c9db
commit
efa7c86ec5
@ -8,6 +8,7 @@ import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import platform
|
||||
|
||||
|
||||
class Color:
|
||||
@ -183,7 +184,11 @@ def get_pid(name):
|
||||
return False
|
||||
|
||||
try:
|
||||
subprocess.check_output(["pidof", "-s", name])
|
||||
if platform.system() != 'Darwin':
|
||||
subprocess.check_output(["pidof", "-s", name])
|
||||
else:
|
||||
subprocess.check_output(["pidof", name])
|
||||
|
||||
except subprocess.CalledProcessError:
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user