mirror of https://github.com/mpv-player/mpv
build: remove pointless exception handling in oss check
This commit is contained in:
parent
803ff1a283
commit
54948f1b62
|
@ -81,15 +81,11 @@ def __fail_oss_check__(ctx):
|
||||||
|
|
||||||
def __get_osslibdir__():
|
def __get_osslibdir__():
|
||||||
from waflib import Utils
|
from waflib import Utils
|
||||||
|
|
||||||
try:
|
|
||||||
cmd = ['sh', '-c', '. /etc/oss.conf && echo $OSSLIBDIR']
|
cmd = ['sh', '-c', '. /etc/oss.conf && echo $OSSLIBDIR']
|
||||||
p = Utils.subprocess.Popen(cmd, stdin=Utils.subprocess.PIPE,
|
p = Utils.subprocess.Popen(cmd, stdin=Utils.subprocess.PIPE,
|
||||||
stdout=Utils.subprocess.PIPE,
|
stdout=Utils.subprocess.PIPE,
|
||||||
stderr=Utils.subprocess.PIPE)
|
stderr=Utils.subprocess.PIPE)
|
||||||
return p.communicate()[0].decode().rstrip()
|
return p.communicate()[0].decode().rstrip()
|
||||||
except Exception:
|
|
||||||
return ""
|
|
||||||
|
|
||||||
def __get_osscflags__():
|
def __get_osscflags__():
|
||||||
import os
|
import os
|
||||||
|
|
Loading…
Reference in New Issue