SOURCES: python-TwistedCore-basedir-import.patch (NEW) - copied fr...

wiget wiget at pld-linux.org
Mon May 29 16:31:57 CEST 2006


Author: wiget                        Date: Mon May 29 14:31:57 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- copied from python-Twisted-basedir-import.patch

---- Files affected:
SOURCES:
   python-TwistedCore-basedir-import.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/python-TwistedCore-basedir-import.patch
diff -u /dev/null SOURCES/python-TwistedCore-basedir-import.patch:1.1
--- /dev/null	Mon May 29 16:31:57 2006
+++ SOURCES/python-TwistedCore-basedir-import.patch	Mon May 29 16:31:52 2006
@@ -0,0 +1,11 @@
+--- Twisted-1.3.0-vanilla/bin/twistd	2003-09-23 05:28:15.000000000 +0200
++++ Twisted-1.3.0/bin/twistd	2005-02-17 23:21:44.879617320 +0100
+@@ -21,6 +21,8 @@
+ # This makes sure that users don't have to set up their environment
+ # specially in order to run these programs from bin/.
+ import sys, os, string
++try: del(sys.path[sys.path.index(os.path.dirname(os.path.abspath(sys.argv[0])))])
++except: pass
+ if string.find(os.path.abspath(sys.argv[0]), os.sep+'Twisted') != -1:
+     sys.path.insert(0, os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]), os.pardir, os.pardir)))
+ if hasattr(os, "getuid") and os.getuid() != 0:
================================================================


More information about the pld-cvs-commit mailing list