mirror of
				https://github.com/stevenrobertson/cuburn.git
				synced 2025-11-03 09:50:53 -05:00 
			
		
		
		
	Run genome/db.py to print an anim from a path
This commit is contained in:
		@ -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])
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user