Merge lp:~patrickas/ensoft-sextant/python3 into lp:ensoft-sextant

Proposed by Patrick Stevens
Status: Merged
Approved by: Patrick Stevens
Approved revision: 7
Merged at revision: 7
Proposed branch: lp:~patrickas/ensoft-sextant/python3
Merge into: lp:ensoft-sextant
Diff against target: 11 lines (+3/-1)
1 file modified
bin/sextant (+3/-1)
To merge this branch: bzr merge lp:~patrickas/ensoft-sextant/python3
Reviewer Review Type Date Requested Status
Patrick Stevens Approve
Review via email: mp+231413@code.launchpad.net

Commit message

Add option to run Sextant under Python 3 by setting the environment variable SEXTANT_PYTHON to python2 or python3 (defaults to python - that is, the system-wide one).

Description of the change

Add option to run Sextant under Python 3 by setting the environment variable SEXTANT_PYTHON to python2 or python3 (defaults to python - that is, the system-wide one).

To post a comment you must log in.
Revision history for this message
Patrick Stevens (patrickas) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/sextant'
2--- bin/sextant 2014-08-18 14:19:21 +0000
3+++ bin/sextant 2014-08-19 16:09:22 +0000
4@@ -4,5 +4,7 @@
5
6 export PYTHONPATH=${PYTHONPATH}:${DIR}/../src
7
8-python -m sextant $@
9+export SEXTANT_PYTHON=${SEXTANT_PYTHON:=python}
10+
11+$SEXTANT_PYTHON -m sextant $@
12

Subscribers

People subscribed via source and target branches