3 thisdir
= os
.path
.dirname(os
.path
.abspath(sys
.argv
[0]))
4 sys
.path
.insert(0, os
.path
.abspath(os
.path
.join(thisdir
, '../tko')))
7 usage
= "usage: delete_job_results <job tag>"
13 resultsdir
= os
.path
.abspath(os
.path
.join(thisdir
, '../results', tag
))
16 if not db
.find_job(tag
):
17 raise "Job tag %s does not exist in database" % tag
20 shutil
.rmtree(resultsdir
)