pgconsole.py
author Radek Brich <radek.brich@devl.cz>
Mon, 27 Feb 2012 15:12:40 +0100
changeset 30 a8b7cd92f39f
parent 11 bc69eca59041
child 93 b72591087495
permissions -rwxr-xr-x
Fix analyzeall tool. Add user output formating to batchquery tool. Add isolation_level setting support to ToolBase.

#!/usr/bin/env python3.2

from pgconsole.config import cfg
from pgconsole.app import PgConsoleApp


if __name__ == '__main__':
    try:
        cfg.load('pgconsole.xml.gz')
    except IOError:
        cfg.new('pgconsole.xml.gz')

    try:
        gtkrc = cfg.root.style.gtkrc.text
    except AttributeError:
        pass
    else:
        gtk.rc_parse_string(gtkrc)

    app = PgConsoleApp()
    app.main()