[diffoscope] 02/04: bin/diffoscope: Use typical sys.path.insert(0, ...) method to modify sys.path

Chris Lamb chris at chris-lamb.co.uk
Thu Dec 22 10:36:10 CET 2016


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit 760005e1a0d0204fb0356060f7bd333ef9db5c84
Author: Chris Lamb <lamby at debian.org>
Date:   Thu Dec 22 09:16:14 2016 +0000

    bin/diffoscope: Use typical sys.path.insert(0, ...) method to modify sys.path
---
 bin/diffoscope | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/diffoscope b/bin/diffoscope
index c5b2cca..48a3ff2 100755
--- a/bin/diffoscope
+++ b/bin/diffoscope
@@ -24,7 +24,7 @@ import sys
 
 for root in ['.', '..']:
     if os.path.exists(os.path.join(root, 'diffoscope', '__init__.py')):
-        sys.path = [root] + sys.path
+        sys.path.insert(0, root)
         break
 
 from diffoscope.main import main

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list