Update of /cvsroot/mailman/mailman3/bin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16731
Modified Files:
paths.py
Log Message:
Make the path hackery a little more generic.
Index: paths.py
===================================================================
RCS file: /cvsroot/mailman/mailman3/bin/paths.py,v
retrieving revision 3.0
retrieving revision 3.1
diff -u -d -r3.0 -r3.1
--- paths.py 29 Mar 2004 05:18:49 -0000 3.0
+++ paths.py 30 Mar 2004 02:27:02 -0000 3.1
@@ -1,3 +1,5 @@
+# Copyright (C) 2004 Barry A. Warsaw
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
@@ -19,8 +21,11 @@
# attributes that other modules may use to get the absolute path to the
# installed Mailman distribution.
+"""Path hackery."""
+
import os
import sys
# Setting python paths
-sys.path.insert(0, '/home/barry/projects/mailman3/src')
+here = os.getcwd()
+sys.path.insert(0, os.path.join(here, 'src'))
_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org