I tried making a custom build script like this:
- Code: Select all
{
"cmd": [ "kill `ps -ef | grep $file_name | grep -v grep | awk '{print $2}'` || true && python3", "$file"],
"selector": "main.py",
"path": "/usr/local/bin"
}
which did not work out as I wanted it to, is there a simple way to do it? Googling turned up nothing of use.