build: remove pointless exception handling in oss check

This commit is contained in:
Stefano Pigozzi
2013-11-26 21:32:38 +01:00
parent 803ff1a283
commit 54948f1b62

View File

@@ -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