I am writing a Python script that downloads a repo and executes some gradle tasks using the gradle wrapper.
I read about os.system, os.popen, subprocess and stuff like this, but the Python script could be executed either on Windows or Linux and obviously I want it to call either gradlew.bat or ./gradlew respectively.
Is there a standard way of achieving this?