Currently, ExternalProgram get_path() assumes the last component in the path is always the actual command path. However, this is not always right. For example, in the command "python -u", we should return "python" and not "-u". However, in other cases, like "python script.py", then the last component is the right one. The heuristic that seems to capture this is to use the last argument that is still a file. This means options get ignored, but "python script.py" still works. Let's use this heuristic, at least for now.pull/3649/head
parent
b6995aac70
commit
0f86df4d23
1 changed files with 12 additions and 5 deletions
Loading…
Reference in new issue