From 5b5091625c4cf9c7a15c048e561d7de58c0d8a6e Mon Sep 17 00:00:00 2001 From: Tim Harder Date: Sat, 17 Jan 2015 23:59:57 -0800 Subject: leave the sys.path[0] intact when running scripts from the git repo This follows the sys.path docs that state the first item of sys.path should be the directory containing the script used to invoke the interpreter. --- bin/pwrapper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/pwrapper b/bin/pwrapper index 11a2b2a1..1917467b 100755 --- a/bin/pwrapper +++ b/bin/pwrapper @@ -11,7 +11,7 @@ import os import os.path as osp import sys -sys.path.insert(0, osp.dirname(osp.dirname(osp.abspath(__file__)))) +sys.path.insert(1, osp.dirname(osp.dirname(osp.abspath(__file__)))) if __name__ == '__main__': try: -- cgit v1.2.3-65-gdbad