diff --git a/python/paddle_serving_client/__init__.py b/python/paddle_serving_client/__init__.py index acece304414d8b5ebf7f1937cfa495c58e7ac60d..39e06ef14d9f2ab64bee0730ef29b03a5e2dc923 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