diff --git a/src/lib/python/isc/log/__init__.py b/src/lib/python/isc/log/__init__.py index 596d71c0cd..949a9da7d2 100644 --- a/src/lib/python/isc/log/__init__.py +++ b/src/lib/python/isc/log/__init__.py @@ -28,9 +28,9 @@ import sys cwd = os.getcwd() base = os.path.split(cwd)[0] -for base in sys.path: +for base in sys.path[:]: loglibdir = os.path.join(base, 'isc/log/.libs') if os.path.exists(loglibdir): - sys.path.append(loglibdir) + sys.path.insert(0, loglibdir) from log import *