2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[trac1030] place the added path at the beginning of the list

if in any of the other paths there was an old log.so, it would choose that otherwise
This commit is contained in:
Jelte Jansen
2011-06-21 06:50:12 -07:00
parent e9798fc893
commit 0bea88f134

View File

@@ -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 *