Skip to content

Fix being compatible with Powershell#75

Open
chengmo03013106 wants to merge 2 commits into
himself65:mainfrom
chengmo03013106:compatible_powershell
Open

Fix being compatible with Powershell#75
chengmo03013106 wants to merge 2 commits into
himself65:mainfrom
chengmo03013106:compatible_powershell

Conversation

@chengmo03013106

@chengmo03013106 chengmo03013106 commented Jun 2, 2026

Copy link
Copy Markdown
  1. Using exception instead of exit code as 0 or 1, It will print stderr if there was some wrong with it.
  2. Powershell can't solve fixed " and '. using ' in the out layer, it will be compatible with powershell.

@himself65 himself65 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

thx

Single-line 'try: ...; except ...' is a Python SyntaxError, so every
rewritten !`python3 -c` probe printed a traceback instead of its
status signal. Keep the PowerShell-friendly outer single quotes but
restore valid Python + the shell 2>/dev/null || echo fallback. The
SPX/PRICE f-strings extract the value into a variable to avoid nested
same-quotes inside the f-string.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants