chiark / gitweb /
make-secnet-sites: Fix python path manipulation
[secnet.git] / make-secnet-sites
index d6f9ee0aa621f359614b04b12ef376ed6fb9765c..ea2dbc3a9bc87f83415e5ffa285f80ac58c62b4b 100755 (executable)
@@ -62,8 +62,10 @@ import re
 
 import ipaddr
 
-sys.path.insert(0,"/usr/local/share/secnet")
-sys.path.insert(0,"/usr/share/secnet")
+# entry 0 is "near the executable", or maybe from PYTHONPATH=.,
+# which we don't want to preempt
+sys.path.insert(1,"/usr/local/share/secnet")
+sys.path.insert(1,"/usr/share/secnet")
 import ipaddrset
 
 VERSION="0.1.18"