[Github-comments] [geany/geany] Allow to select the Python command, and use `py` on Windows (#2223)

Colomban Wendling notifications at xxxxx
Fri Oct 9 09:24:36 UTC 2020


> N.B. The `py` launcher on Windows is a bit strange: it seems to try to auto-detect the desired Python version and it fails (at least sometimes). A simple Hello-World program using Python3 syntax can be compiled with `py -m py_compile` as the launcher chooses Python3 but executing it with `py "%f"` chooses Python2, for whatever reason.
> But since this happens also in the terminal, it is unrelated to this PR and Geany in general.

Well, if it doesn't work maybe it's worse to use it than something less magical?  I don't know what the Windows installer does, but if there is `python`, `python2` or `python3`, maybe we should pick one that is consistent in behavior instead of using `py` that apparently behaves randomly?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2223#issuecomment-706073180
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20201009/d5a7d846/attachment.htm>


More information about the Github-comments mailing list