Commit 5b22c62f by sikang

update script

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