[meld] If there is a paths.py or misc.py, or whatever we internally use,



commit 2102601c33d9db81bb817d368e5cbb8934c1dc86
Author: Vincent Legoll <vincent legoll gmail com>
Date:   Sat Apr 25 18:12:28 2009 +0200

    If there is a paths.py or misc.py, or whatever we internally use,
    in the user's PYTHONPATH, meld will crash at startup...
    
    This has happened to people:
    
        https://bugs.launchpad.net/ubuntu/+source/meld/+bug/360097
        https://bugs.launchpad.net/ubuntu/+source/meld/+bug/250525
        http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=471154
    
    This may not be considered as a bug in meld itself, but
    users are annoyed...
---
 meld |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meld b/meld
index 3b7d211..b8d2ae4 100755
--- a/meld
+++ b/meld
@@ -29,7 +29,7 @@ if "--pychecker" in sys.argv:
 #
 # i18n support
 #
-sys.path += [ #LIBDIR#
+sys.path[0:0] = [ #LIBDIR#
 ]
 import paths
 import gettext



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