Currently I am working on a cross-platform library written in C. It uses a python3 based build-system.
When building my project I need to call python differently depending on the platform. For instance on the unixoid systems (i.e. Linux and macOS) I need to call
python3 build_script.py. On windows, however, I need to call
Currently I am handling this with an ‘if’ in my workflow, which works just fine.
Still, is there a more elegant way to handle this?