3 ms·
Implementation question: Whats a good way to generalize such a python script so that windows and nix users can run it?
by banku_brougham 7y ago
Implementation question:
Whats a good way to generalize such a python script so that windows and nix users can run it?
- alexis_read 7y agoThe 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.