#!/usr/bin/env python
import os
import sys
import sqlalchemy
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import legendary_waffle

db = legendary_waffle.inmem_db()

# legendary_waffle.import_fixture_file(db, "../legendary_waffle/fixtures/Action.json")
# legendary_waffle.import_fixture_file(db, "../legendary_waffle/fixtures/ActionExecutionRange.json")

# x = legendary_waffle.model_read(db, legendary_waffle.models.Action, pkid=2)
# print x.name
# print x.execution_range


legendary_waffle.preload_database(db, file_list_prefix="../legendary_waffle/fixtures/{}")