[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[minion-cvs] Fix a nasty bug in generated wrapper script: prepend, d...



Update of /home/minion/cvsroot/src/minion
In directory moria.mit.edu:/tmp/cvs-serv16163

Modified Files:
	setup.py 
Log Message:
Fix a nasty bug in generated wrapper script: prepend, dont append!

Index: setup.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/setup.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- setup.py	5 Jan 2003 06:49:24 -0000	1.22
+++ setup.py	5 Jan 2003 12:35:19 -0000	1.23
@@ -111,7 +111,7 @@
 f = open(SCRIPT_PATH, 'wt')
 f.write("#!%s -O\n"% sys.executable)
 if pathextra:
-    f.write("import sys\nsys.path.append(%r)\n"%pathextra)
+    f.write("import sys\nsys.path[0:0] = [%r]\n"%pathextra)
 f.write("""\
 try:
     import mixminion.Main