Commit 12aa38c6 authored by josh's avatar josh

- character is replaced with _ in file names

parent 3665f649
......@@ -7,12 +7,17 @@ if __name__ == "__main__":
Required arguments:
- arg1: path to the image
- arg2: path to database
- arg3: new name for image
( NOTE: "-" character is replaced with "_" )
'''
if len( sys.argv ) == 4:
imgPath = sys.argv[1]
dbPath = sys.argv[2]
newName = sys.argv[3]
if "-" in newName:
newName = newName.replace( "-", "_" )
importAndProcess( imgPath=imgPath, dbPath=dbPath, newImgName=newName )
else:
......
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