mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
build: remove pointless exception handling in oss check
This commit is contained in:
@@ -81,15 +81,11 @@ def __fail_oss_check__(ctx):
|
|||||||
|
|
||||||
def __get_osslibdir__():
|
def __get_osslibdir__():
|
||||||
from waflib import Utils
|
from waflib import Utils
|
||||||
|
cmd = ['sh', '-c', '. /etc/oss.conf && echo $OSSLIBDIR']
|
||||||
try:
|
p = Utils.subprocess.Popen(cmd, stdin=Utils.subprocess.PIPE,
|
||||||
cmd = ['sh', '-c', '. /etc/oss.conf && echo $OSSLIBDIR']
|
stdout=Utils.subprocess.PIPE,
|
||||||
p = Utils.subprocess.Popen(cmd, stdin=Utils.subprocess.PIPE,
|
stderr=Utils.subprocess.PIPE)
|
||||||
stdout=Utils.subprocess.PIPE,
|
return p.communicate()[0].decode().rstrip()
|
||||||
stderr=Utils.subprocess.PIPE)
|
|
||||||
return p.communicate()[0].decode().rstrip()
|
|
||||||
except Exception:
|
|
||||||
return ""
|
|
||||||
|
|
||||||
def __get_osscflags__():
|
def __get_osscflags__():
|
||||||
import os
|
import os
|
||||||
|
|||||||
Reference in New Issue
Block a user