From b5aa81191f83c9f33ebeb7993008e08257007700 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Thu, 7 May 2020 11:54:09 +0000 Subject: [PATCH] add check --- python/paddle_serving_client/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle_serving_client/__init__.py b/python/paddle_serving_client/__init__.py index 7c7cc37f..09d3a7e2 100644 --- a/python/paddle_serving_client/__init__.py +++ b/python/paddle_serving_client/__init__.py @@ -128,7 +128,7 @@ class Client(object): ld_path = os.getenv('LD_LIBRARY_PATH') if ld_path == None: os.environ['LD_LIBRARY_PATH'] = lib_path - else: + elif ld_path not in lib_path: os.environ['LD_LIBRARY_PATH'] = ld_path + ':' + lib_path def load_client_config(self, path): -- GitLab