Merge lp:~brian.curtin/ubuntuone-dev-tools/prefer-path into lp:ubuntuone-dev-tools
| Status: | Merged |
|---|---|
| Approved by: | dobey on 2012-01-24 |
| Approved revision: | 57 |
| Merged at revision: | 57 |
| Proposed branch: | lp:~brian.curtin/ubuntuone-dev-tools/prefer-path |
| Merge into: | lp:ubuntuone-dev-tools |
| Diff against target: |
30 lines (+11/-2) 1 file modified
bin/u1lint (+11/-2) |
| To merge this branch: | bzr merge lp:~brian.curtin/ubuntuone-dev-tools/prefer-path |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Roberto Alsina (community) | 2012-01-20 | Approve on 2012-01-24 | |
|
Review via email:
|
|||
Commit Message
Check on the Path for python.exe before looking in the registry, to allow buildout-based setups to work with the proper Python setup. Additionally, for the buildout setups, check for scripts next to python.exe before trying the traditional Scripts/ folder.
Description of the Change
u1lint should prefer the Python on the path and fall back to checking the registry. When running within a buildout, the copy of Python that gets run is on the Path and not in the registry, so the wrong one ends up being found.
Additionally, in that buildout setup, scripts appear next to python.exe rather than in a Scripts folder (like on a regular install). Check first whether the script is beside python.exe and fall back to Scripts/.
(This merge proposal includes a small correction from pushing a bad version of the file - os.path.join was left out of line 87 of u1lint)

+1