diff options
Diffstat (limited to 'waftools')
-rw-r--r-- | waftools/checks/custom.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/waftools/checks/custom.py b/waftools/checks/custom.py index 623a02fda8..6247d00353 100644 --- a/waftools/checks/custom.py +++ b/waftools/checks/custom.py @@ -81,15 +81,11 @@ def __fail_oss_check__(ctx): def __get_osslibdir__(): from waflib import Utils - - try: - cmd = ['sh', '-c', '. /etc/oss.conf && echo $OSSLIBDIR'] - p = Utils.subprocess.Popen(cmd, stdin=Utils.subprocess.PIPE, - stdout=Utils.subprocess.PIPE, - stderr=Utils.subprocess.PIPE) - return p.communicate()[0].decode().rstrip() - except Exception: - return "" + cmd = ['sh', '-c', '. /etc/oss.conf && echo $OSSLIBDIR'] + p = Utils.subprocess.Popen(cmd, stdin=Utils.subprocess.PIPE, + stdout=Utils.subprocess.PIPE, + stderr=Utils.subprocess.PIPE) + return p.communicate()[0].decode().rstrip() def __get_osscflags__(): import os |