Hacker News new | ask | show | jobs
by banku_brougham 2527 days ago
Implementation question:

Whats a good way to generalize such a python script so that windows and nix users can run it?

1 comments

The best way is probably a bootstrap script ie. ps1 or sh which supplies the platform-specific parameters, and can pip install any script dependencies. So, 3-file solution. Additonally, this can be generalised to a CI platform as python can subprocess-run anything there's not a native lib for. Lastly, you could do autodoc via the script for a complete solution.