You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hardcoded like this now, checking for npm and jest. Can detect if program is unavailable but program.cmd is available. Not sure if it can be done quickly
if args[0] in ("npm", "jest") and VerInfo().windows:
args[0] = f"{args[0]}.cmd"
The text was updated successfully, but these errors were encountered:
Alternatively catch programnotfounderror and retry with suffix, I don't really like that though. Worst case just make programs easier to edit with a class variable
Mandera
changed the title
Dynamic .cmd suffix for Terminal's first arg
Dynamic .cmd suffix for Terminal's first arg on Windows
Mar 10, 2023
Hardcoded like this now, checking for npm and jest. Can detect if program is unavailable but program.cmd is available. Not sure if it can be done quickly
The text was updated successfully, but these errors were encountered: