diff options
author | Tim Harder <radhermit@gmail.com> | 2014-06-05 23:53:52 -0700 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2014-06-06 00:10:01 -0700 |
commit | 920fadb28c2e3d1f8ad2b15d42b64a50dbec7b65 (patch) | |
tree | c74f233dc8b2bd1d6236ec1f0ba0e96d85eaa5b3 /bin | |
parent | refactor(ebuild/processor): import used osutils methods instead of module (diff) | |
download | pkgcore-920fadb28c2e3d1f8ad2b15d42b64a50dbec7b65.tar.gz pkgcore-920fadb28c2e3d1f8ad2b15d42b64a50dbec7b65.tar.bz2 pkgcore-920fadb28c2e3d1f8ad2b15d42b64a50dbec7b65.zip |
refactor(eapi-bash): use existing python scripts instead of redundant shims
Instead of using python shim scripts for pinspect and filter-env for
calls from the bash side we use the versions found in PATH. This is done
for non-system installed pkgcore by adding the bin directory (which
already contains the relevant python scripts) of the git repo or
unpacked tarball to PATH.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pwrapper | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/pwrapper b/bin/pwrapper index a51ee979..a83d2104 100755 --- a/bin/pwrapper +++ b/bin/pwrapper @@ -7,6 +7,7 @@ checkout or unpacked tarball. It adds the parent of that "bin" dir to sys.path unconditionally. """ +import os import os.path as osp import sys @@ -25,6 +26,7 @@ except ImportError: sys.exit(1) if __name__ == '__main__': + os.environ["PKGCORE_SCRIPT_PATH"] = osp.dirname(osp.abspath(__file__)) name = osp.basename(sys.argv[0]).replace("-", "_") script = modules.load_module('pkgcore.scripts.%s' % (name,)) subcommands = getattr(script, 'argparser', None) |