Repository navigation
Use python3 for Python script fallback on Debian - #100
Open
nicolasmorrone-coder wants to merge 1 commit into
Open
nicolasmorrone-coder wants to merge 1 commit into
nicolasmorrone-coder wants to merge 1 commit into
Conversation
Mips2648
approved these changes
Oct 20, 2026
Contributor
|
ok but add changelog please |
Salvialf
approved these changes
Oct 20, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
On Debian 13, a Python script without a shebang fails with
python: not foundbecause the plugin's interpreter fallback invokes the unversioned executable. Usepython3for the.pyfallback.This change targets the current beta interpreter-selection code and preserves its handling of explicit commands and executable scripts with shebangs.
Suggested changelog entry
Use Python 3 for Python scripts without a shebang on Debian installations without an unversioned python command.
Related issues/external references
No related issue found in the open-PR search.
Types of changes
Validation
Executed through actual scriptCmd commands as www-data in a disposable Debian 13 / Jeedom 4.6.2 / PHP 8.4 / Python 3.13 VM:
#!/usr/bin/env python3still prints 43 successfully.The failure was initially reproduced against the stable code. HTTP, JSON, XML and HTML commands were also exercised during the preceding compatibility work; those paths are unchanged by this one-line patch.
PR checklist
Prepared with AI assistance; the VM validation above was executed before submission.
Contributor-fork GitHub Actions validation passed on this PR commit using the official shared workflow (PHP 7.4, 8.0 and 8.2): https://github.com/nicolasmorrone-coder/plugin-script/actions/runs/39415942318 . Upstream execution remains pending maintainer approval.