#!/usr/bin/env python

__all__ = ['MythStatic', \
            \
           'DictData', 'DBData', 'DBDataWrite', 'DBDataCRef', 'MythDBConn', \
           'MythBEConn', 'MythXMLConn', 'MythLog', 'MythError', \
           'StorageGroup', 'Grabber', \
            \
           'ftopen', 'FileTransfer', 'FileOps', 'FreeSpace', 'Program', \
           'Recorded', 'RecordedProgram', 'OldRecorded', 'Job', 'Channel', \
           'Guide', 'Video', 'VideoGrabber', 'NetVisionRSSItems', \
           'NetVisionTreeItems', 'NetVisionSites', 'NetVisionGrabber', \
            \
           'MythBE', 'Frontend', 'MythDB', 'MythVideo']

from MythStatic import *
from MythBase import *
from MythData import *
from MythFunc import *

if __name__ == '__main__':
    banner = 'MythTV Python interactive shell.'
    import code
    try:
        import readline, rlcompleter
    except:
        pass
    else:
        readline.parse_and_bind("tab: complete")
        banner += ' TAB completion available.'
    namespace = globals().copy()
    namespace.update(locals())
    code.InteractiveConsole(namespace).interact(banner)
