#!/usr/bin/env python """ TwitterGramCaster ices0 playlist driver l.m.orchard@pobox.com http://decafbad.com/ Share and Enjoy """ import os, os.path, sys from string import * # HACK: Orient self with paths to local modules and config files #self_path = os.path.abspath(os.path.dirname(sys.argv[0])) self_path = os.path.abspath(os.path.dirname(__file__)) base_dir = self_path sys.path.append(os.path.join(base_dir, 'lib')) sys.path.append(os.path.join(base_dir, 'extlib')) import TwitterGramCaster global shell shell = TwitterGramCaster.init(base_dir=base_dir) def ices_init (): global shell return shell.ices_init() def ices_shutdown (): global shell return shell.ices_shutdown() def ices_get_next (): global shell return shell.ices_get_next() def ices_get_metadata (): global shell return shell.ices_get_metadata() def ices_get_lineno (): global shell return shell.ices_get_lineno()