def initialize_inventory(): location = FileLocation.save_location the_file = most_recent_file.MostRecentFile(location) style = style_db.StyleDB() inventory = Inventory(the_file, style) global queries queries = InventoryQueries(inventory)
def make_test_inventory_query(test_file): test_file = test_file inventory = Inventory(BASE_DIR + test_file) return InventoryQueries(inventory)
def make_queries(filename): return InventoryQueries(Inventory(BASE_DIR + filename))