Run genome/db.py to print an anim from a path

This commit is contained in:
Steven Robertson 2012-05-31 22:16:51 -07:00
parent 42af8bee07
commit b67fd6f38c

View File

@ -80,3 +80,9 @@ def connect(path):
if os.path.isfile(path):
return OneFileDB.read(path)
return FilesystemDB(path)
if __name__ == "__main__":
import sys
gdb = connect(sys.argv[1])
for i in sys.argv[2:]:
print convert.to_json(gdb.get_anim(i)[0])