Commit 989c4c69 by sikang

update script

parent 3d71abfb
......@@ -11,6 +11,6 @@ for root, dirs, files in os.walk("/Users/connor/Documents/App_GP/"):
dir_name = root.split("/");
dir_name = dir_name[len(dir_name)-1]
if dir_name.startswith(sys.argv[1]+"_"):
if file.endswith(".png") and "_mark" not in file:
if (file.endswith(".png") or file.endswith(".jpg")) and "_mark" not in file:
path = os.path.join(directory, file)
os.system("./image_mark.py "+ path + " " + sys.argv[2].split(".")[0])
\ No newline at end of file
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