delete missing data

parent e9ba0000
......@@ -22,7 +22,10 @@ def main(argv):
print("Usage: " + argv[0] + " <File> <%>")
else:
print (imageMissingData( argv[1])>float(argv[2])/100.0)
if imageMissingData(argv[1])>float(argv[2])/100.0 :
print ("Delleting " + argv[1])
os.system("rm " + argv[1])
#-------------------------------------------------------------------------------
if __name__ == "__main__":
main(sys.argv)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment