Python: Autodetect version issue (26.2) [STUD-78782]#511
Python: Autodetect version issue (26.2) [STUD-78782]#511
Conversation
Search for python and python3 when detecting python Search in the install folder and in ../bin folder Remove no longer needed preprocessor directive
There was a problem hiding this comment.
Pull request overview
Updates Python runtime autodetection to be more flexible across installations and simplifies OS detection logic by removing now-unneeded preprocessor guards.
Changes:
- Extend Python autodetection to probe multiple executable names (
python/python3) and locations (<path>and<path>/bin). - Refactor autodetection to try multiple candidates and aggregate failures for easier troubleshooting.
- Remove
#if NETCOREAPPguards aroundRuntimeInformation.IsOSPlatform(...)checks.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| Activities/Shared/UiPath.Shared.Service/Client/Controller.cs | Removes NETCOREAPP conditional around Windows detection. |
| Activities/Python/UiPath.Python/Service/PythonProxy.cs | Removes NETCOREAPP conditional around Windows detection. |
| Activities/Python/UiPath.Python/Impl/Engine.cs | Removes NETCOREAPP conditional around Windows detection. |
| Activities/Python/UiPath.Python/EngineProvider.cs | Implements multi-candidate Python executable probing and aggregated failure handling. |
| Activities/Python/UiPath.Python.Host.Shared/PythonService.cs | Removes NETCOREAPP conditional around Windows detection. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
branch name does not contain the package name |
Address review findings
|
address part of the review comments in this file
|
leave as it is for now (changing the name will require new PR) |
|
|
/claude-code-review |



Search for python and python3 when detecting python
Search in the install folder and in ../bin folder
Remove no longer needed preprocessor directive