# Python launcher: prefer `py` (Windows launcher), fallback to `python3` export def py [...rest: string] { if (which ^py | is-not-empty) { ^py ...$rest } else if (which ^python3 | is-not-empty) { ^python3 ...$rest } else { print "Error: Python is not installed or could not be found." } }