Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Implementation question:

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



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: