BIND 10 trac1010, updated. a4f1f8de765810aecff1194c74a108682e3de28e [trac1010] this should work better to find the right .libs dir

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Jun 17 13:32:52 UTC 2011


The branch, trac1010 has been updated
       via  a4f1f8de765810aecff1194c74a108682e3de28e (commit)
      from  c4c85ce1694bd421912d1902f2d614c15bebbea1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a4f1f8de765810aecff1194c74a108682e3de28e
Author: Jelte Jansen <jelte at isc.org>
Date:   Fri Jun 17 15:20:02 2011 +0200

    [trac1010] this should work better to find the right .libs dir

-----------------------------------------------------------------------

Summary of changes:
 src/lib/python/isc/log/__init__.py |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/python/isc/log/__init__.py b/src/lib/python/isc/log/__init__.py
index de03d9e..596d71c 100644
--- a/src/lib/python/isc/log/__init__.py
+++ b/src/lib/python/isc/log/__init__.py
@@ -27,11 +27,10 @@ import sys
 
 cwd = os.getcwd()
 base = os.path.split(cwd)[0]
-# find the path that contains src/lib/python/isc/log/.libs and append it
-while base != cwd:
-    loglibdir = os.path.join(base, 'src/lib/python/isc/log/.libs')
+
+for base in sys.path:
+    loglibdir = os.path.join(base, 'isc/log/.libs')
     if os.path.exists(loglibdir):
         sys.path.append(loglibdir)
-    cwd = base
-    base = os.path.split(cwd)[0]
+
 from log import *




More information about the bind10-changes mailing list