<p>The first commit can be generally useful if e.g. Python is not generally found in the PATH, for selecting <code>python3</code> by default, or if the environment doesn't provide a generic <code>python</code> link but only versioned ones (like <code>python2</code> and <code>python3</code>).</p>
<p>The second one implements the suggestion from <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="465354253" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/2211" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/2211/hovercard" href="https://github.com/geany/geany/issues/2211">#2211</a> on top of this.  I have no idea if that suggestion makes sense as I don't use Windows and don't have enough Python-on-Windows knowledge.  <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=617017" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eht16">@eht16</a> what do you think?</p>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=23124853" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/novel-yet-trivial">@novel-yet-trivial</a> could you test this if you can build Geany?  I didn't actually test it on Winodws so it properly working is only theoretical, although I'm quite confident.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/2223'>https://github.com/geany/geany/pull/2223</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Add support for selecting the default Python command</li>
  <li>Use the `py` launcher for Python filetype on Windows</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2223/files#diff-0">configure.ac</a>
    (11)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2223/files#diff-1">data/Makefile.am</a>
    (12)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/geany/geany/pull/2223/files#diff-2">data/filedefs/filetypes.python.in</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/2223.patch'>https://github.com/geany/geany/pull/2223.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/2223.diff'>https://github.com/geany/geany/pull/2223.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2223?email_source=notifications&email_token=AAIOWJYAQT5VZB2UMY6GNI3QACK3LA5CNFSM4IE5OAMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HABUCVA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ3HVRXHOPPUOQUFM23QACK3LANCNFSM4IE5OAMA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ3BOH6B4MYRIQUDAVLQACK3LA5CNFSM4IE5OAMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HABUCVA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2223?email_source=notifications\u0026email_token=AAIOWJYAQT5VZB2UMY6GNI3QACK3LA5CNFSM4IE5OAMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HABUCVA",
"url": "https://github.com/geany/geany/pull/2223?email_source=notifications\u0026email_token=AAIOWJYAQT5VZB2UMY6GNI3QACK3LA5CNFSM4IE5OAMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HABUCVA",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>