Don't hardcode python binary path, use env instead.
Details
Details
- Reviewers
tflink - Commits
- rDEPCK97f1dc64074b: allow main script to run under virtualenv
Before the patch:
(env_taskotron) kparal@medusa ~/devel/taskotron/task-depcheck (master) $ ./run_depcheck.py -h Traceback (most recent call last): File "./run_depcheck.py", line 8, in <module> import depcheck File "/home/kparal/devel/taskotron/task-depcheck/depcheck/__init__.py", line 43, in <module> from . import squash_results File "/home/kparal/devel/taskotron/task-depcheck/depcheck/squash_results.py", line 7, in <module> from libtaskotron.koji_utils import KojiClient ImportError: No module named libtaskotron.koji_utils
After the patch:
$ ./run_depcheck.py -h usage: run_depcheck.py [-h] [-a {i386,x86_64,armhfp}] [-r REPOS [REPOS ...]] [-f {rpms,updates}] rpm [rpm ...] positional arguments: rpm RPM to be tested optional arguments: -h, --help show this help message and exit -a {i386,x86_64,armhfp}, --arch {i386,x86_64,armhfp} Architecture to be tested; support arches are x86, x86_64, and armhfp. If omitted, defaults to current machine architecture. -r REPOS [REPOS ...], --repos REPOS [REPOS ...] Repo to be tested against, in the form of reponame:repolocation where repolocation can be local (in the form /dir/of/repo) or remote (direct link or standard metalink), to be tested against. -f {rpms,updates}, --format {rpms,updates} Specify output format to override configuration
Diff Detail
Diff Detail
- Repository
- rDEPCK task-depcheck
- Lint
Lint Skipped - Unit
Unit Tests Skipped