aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2015-01-17 23:59:57 -0800
committerTim Harder <radhermit@gmail.com>2015-01-17 23:59:57 -0800
commit5b5091625c4cf9c7a15c048e561d7de58c0d8a6e (patch)
tree5a6a93ae2c76cf9709022168f92b2c7525fa9264 /bin
parentsync code between repo and install wrapper scripts (diff)
downloadpkgcore-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-xbin/pwrapper2
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: