Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 4b9945308a4ba163aa4bbd43d0a1135d > files > 42

conga-0.12.2-32.el5_7.1.src.rpm

Index: luci/utils/luci_admin
===================================================================
RCS file: /cvs/cluster/conga/luci/utils/luci_admin,v
retrieving revision 1.50.2.8
diff -u -r1.50.2.8 luci_admin
--- a/luci/utils/luci_admin	7 Jan 2010 18:08:36 -0000	1.50.2.8
+++ b/luci/utils/luci_admin	25 Mar 2011 20:12:58 -0000
@@ -15,7 +15,7 @@
 import xml
 import xml.dom
 
-sys.path.extend((
+for i in (
 	'/usr/lib/luci/zope/lib/python',
 	'/usr/lib/luci/zope/lib/python/Products',
 	'/usr/lib64/luci/zope/lib/python',
@@ -28,7 +28,8 @@
 	'/usr/lib64/zope/lib/python/Products',
 	'/usr/lib64/zope/lib64/python/Products',
 	'/usr/lib/zope/lib/python/Products'
-))
+):
+	sys.path.insert(0, i)
 
 from Products import __path__
 for pdir in [
@@ -40,7 +41,7 @@
 	'/usr/lib/zope/lib/python/Products']:
 
 	if os.path.isdir(pdir):
-		__path__.append(pdir)
+		__path__.insert(0, pdir)
 
 LUCI_ADMIN_DEBUG		= False