by obverse · 6y ago · 0 comments
I never took it anywhere, but I think the way to go would be a "polyglot" script that could be interpreted by different script engines (sh/bat) that would then pick the correct executable for the given OS. This would require the user to change the file extension as well as download multiple executable files so I don't necessarily like this solution from an elegance stand point.
What that gives you is a stable entry point into python code. From there, you can run whatever platform specific code you want.