Skip to content

Add fallback function to support running commands on different platforms#23

Open
poyea wants to merge 1 commit intoSalesforceAIResearch:mainfrom
poyea:resolve-command
Open

Add fallback function to support running commands on different platforms#23
poyea wants to merge 1 commit intoSalesforceAIResearch:mainfrom
poyea:resolve-command

Conversation

@poyea
Copy link

@poyea poyea commented Oct 12, 2025

Making one config of command: python3 (or vice versa) work on various platforms - Unix (python3 / python) and Windows (python).

Comment on lines +83 to +85
# Fallback: python -> python3 (for some Unix systems)
if resolved is None and command == "python":
resolved = shutil.which("python3")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added these just for the reverse of the Windows fallback

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another fix would just be changing all python3 to just python.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add #24 for the above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant