changeset:   2500:2001bd74c8e0
tag:         tip
user:        Kris Maglione <jg_AT_suckless.org>
date:        Thu Oct 01 00:23:27 2009 -0400
files:       alternative_wmiircs/python/wmiirc
description:
Prepend $WMII_CONFPATH to $PYTHONPATH rather than appending it.
diff -r f9f7b2b8f6c8 -r 2001bd74c8e0 alternative_wmiircs/python/wmiirc
--- a/alternative_wmiircs/python/wmiirc	Wed Sep 30 15:27:26 2009 -0400
+++ b/alternative_wmiircs/python/wmiirc	Thu Oct 01 00:23:27 2009 -0400
@@ -1,7 +1,9 @@
 #!/usr/bin/env python
 import os, sys
+path = []
 for p in os.environ.get("WMII_CONFPATH", "").split(':'):
-    sys.path += [p, p + '/python']
+    path += [p, p + '/python']
+sys.path = path + sys.path
 
 import pygmi
 import wmiirc
Received on Thu Oct 01 2009 - 04:25:15 UTC
This archive was generated by hypermail 2.2.0 : Thu Oct 01 2009 - 04:36:06 UTC