s/dev\/null/os.devnull + add binary flag
For windows compatibility
This commit is contained in:
parent
2e8f5023eb
commit
3914d76287
5 changed files with 5 additions and 5 deletions
|
|
@ -192,7 +192,7 @@ class Downloadboob(object):
|
|||
return 4
|
||||
|
||||
def check_exec(executable):
|
||||
with open('/dev/null', 'w') as devnull:
|
||||
with open(os.devnull, 'w') as devnull:
|
||||
process = subprocess.Popen(['which', executable], stdout=devnull)
|
||||
if process.wait() != 0:
|
||||
print('Please install "%s"' % executable, file=sys.stderr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue