adding script to build.gradle adding script to build.gradle python python

adding script to build.gradle


Take a look at the Exec task. It can be used for running command line processes.

You could create a task like:

task runPython(type:Exec) {   workingDir 'path_to_script'   commandLine 'python', 'my_script.py'}