template reads default python
Bug #827949 reported by
Andreas Roehler
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Low
|
Andreas Roehler |
Bug Description
Gennady N. Uraltsev (gennady-uraltsev) wrote 14 hours ago: #6
I think that the actual path of the [pj]ython executable should be parsed.
When reflecting Gennady's proposal, think a template inaugurating an empty Python edit buffer,
could look for and insert a shebang according to the default environment.
Opinions?
Cheers,
Andreas
Changed in python-mode: | |
importance: | Undecided → Low |
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
Changed in python-mode: | |
status: | New → Fix Committed |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I think it is a very good idea. First I think we should clean up the shebang detection and parsing functions, so at least the process of generating the template should be invertible. After that it should be easy. I am starting to work on this by adding small snippets. For example the py-shebang- startstring should be set in accordance with the real location of the "env" executable