[PATCH 1/6] make-secnet-sites: Put our path component at the beginning

Ian Jackson ijackson at chiark.greenend.org.uk
Mon Sep 15 01:01:15 BST 2014


Otherwise installing the modern `ipaddr' python module (as found eg
python-ipaddr.deb) breaks secnet, because it will appear on the path
before our own copy of the Cendio Systems AB one.

Signed-off-by: Ian Jackson <ijackson at chiark.greenend.org.uk>
---
 make-secnet-sites |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/make-secnet-sites b/make-secnet-sites
index 966bb77..b8a2077 100755
--- a/make-secnet-sites
+++ b/make-secnet-sites
@@ -57,8 +57,8 @@ import getopt
 import re
 
 # The ipaddr library is installed as part of secnet
-sys.path.append("/usr/local/share/secnet")
-sys.path.append("/usr/share/secnet")
+sys.path.insert(0,"/usr/local/share/secnet")
+sys.path.insert(0,"/usr/share/secnet")
 import ipaddr
 
 VERSION="0.1.18"
-- 
1.7.10.4




More information about the sgo-software-discuss mailing list