From 6b56181a520a65cbf101daca53f151dffa86d479 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 2 Apr 2020 11:42:54 -0400 Subject: [PATCH] Fix attrib add code It was failing due to automatic pathing in python3 --- confluent_client/addattribs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/confluent_client/addattribs.py b/confluent_client/addattribs.py index bc1befe5..0deece66 100644 --- a/confluent_client/addattribs.py +++ b/confluent_client/addattribs.py @@ -2,8 +2,11 @@ import os import sys path = os.path.dirname(os.path.realpath(__file__)) +try: + sys.path.remove(path) +except Exception: + pass path = os.path.realpath(os.path.join(path, '..', 'confluent_server')) -print(repr(path)) sys.path.append(path) import confluent.config.attributes as attr