Idle, the editor bundled with python Parameters ---------- exe : str, None If none, should be pretty smart about finding the executable.
(exe=u'idle')
| 84 | |
| 85 | |
| 86 | def idle(exe=u'idle'): |
| 87 | """ Idle, the editor bundled with python |
| 88 | |
| 89 | Parameters |
| 90 | ---------- |
| 91 | exe : str, None |
| 92 | If none, should be pretty smart about finding the executable. |
| 93 | """ |
| 94 | if exe is None: |
| 95 | import idlelib |
| 96 | p = os.path.dirname(idlelib.__filename__) |
| 97 | # i'm not sure if this actually works. Is this idle.py script |
| 98 | # guaranteed to be executable? |
| 99 | exe = os.path.join(p, 'idle.py') |
| 100 | install_editor(exe + u' {filename}') |
| 101 | |
| 102 | |
| 103 | def mate(exe=u'mate'): |
nothing calls this directly
no test coverage detected
searching dependent graphs…