From 61cd828f3a8d2c37caf801825e96867c9068caf8 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Tue, 25 Jul 2017 15:52:42 +0800 Subject: [PATCH] Follow comments --- python/paddle/v2/master/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/v2/master/client.py b/python/paddle/v2/master/client.py index ebc5f217765..3ac62d116bc 100644 --- a/python/paddle/v2/master/client.py +++ b/python/paddle/v2/master/client.py @@ -5,8 +5,8 @@ __lib__ = None def get_c_lib(): + global __lib__ if __lib__ is None: - global __lib__ path = os.path.join(os.path.dirname(__file__), "libpaddle_master.so") __lib__ = ctypes.cdll.LoadLibrary(path) return __lib__ -- GitLab