mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Run genome/db.py to print an anim from a path
This commit is contained in:
parent
42af8bee07
commit
b67fd6f38c
@ -80,3 +80,9 @@ def connect(path):
|
|||||||
if os.path.isfile(path):
|
if os.path.isfile(path):
|
||||||
return OneFileDB.read(path)
|
return OneFileDB.read(path)
|
||||||
return FilesystemDB(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])
|
||||||
|
Loading…
Reference in New Issue
Block a user