diff options
author | Tim Harder <radhermit@gmail.com> | 2015-01-17 23:59:57 -0800 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2015-01-17 23:59:57 -0800 |
commit | 5b5091625c4cf9c7a15c048e561d7de58c0d8a6e (patch) | |
tree | 5a6a93ae2c76cf9709022168f92b2c7525fa9264 /bin | |
parent | sync code between repo and install wrapper scripts (diff) | |
download | pkgcore-5b5091625c4cf9c7a15c048e561d7de58c0d8a6e.tar.gz pkgcore-5b5091625c4cf9c7a15c048e561d7de58c0d8a6e.tar.bz2 pkgcore-5b5091625c4cf9c7a15c048e561d7de58c0d8a6e.zip |
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.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pwrapper | 2 |
1 files changed, 1 insertions, 1 deletions
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: |