diff --git a/python/paddle_serving_client/__init__.py b/python/paddle_serving_client/__init__.py index f3d6a9a661e494bbf8f3ea9995c8e9139fd102d5..ef1c2bfbfb63d40914bd5109380b96a607fc38e9 100644 --- a/python/paddle_serving_client/__init__.py +++ b/python/paddle_serving_client/__init__.py @@ -93,7 +93,7 @@ class Client(object): lib_path = os.path.dirname(paddle_serving_client.__file__) client_path = os.path.join(lib_path, 'serving_client.so') lib_path = os.path.join(lib_path, 'lib') - os.popen('patchelf --set-rpath {} {}'.format(lib_path, client_path)) + os.system('patchelf --set-rpath {} {}'.format(lib_path, client_path)) def load_client_config(self, path): from .serving_client import PredictorClient