From cc2f4508d4b8bc5146611eaa0290e7dbe2fdf00f Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Mon, 11 Aug 2014 16:34:44 -0400 Subject: upstream import --- zmq/backend/cffi/_cffi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zmq/backend/cffi/_cffi.py') diff --git a/zmq/backend/cffi/_cffi.py b/zmq/backend/cffi/_cffi.py index 97b947f..67f4b6b 100644 --- a/zmq/backend/cffi/_cffi.py +++ b/zmq/backend/cffi/_cffi.py @@ -106,10 +106,10 @@ int get_ipc_path_max_len(void); def load_compiler_config(): import zmq - zmq_dir = "zmq" + zmq_dir = dirname(zmq.__file__) zmq_parent = dirname(zmq_dir) - fname = join(dirname(zmq.__file__), 'utils', 'compiler.json') + fname = join(zmq_dir, 'utils', 'compiler.json') if os.path.exists(fname): with open(fname) as f: cfg = json.load(f) -- cgit v1.2.3