pgconsole.py
author Radek Brich <brich.radek@ifortuna.cz>
Thu, 20 Mar 2014 16:33:34 +0100
changeset 95 6adcb7ee4517
parent 93 b72591087495
permissions -rwxr-xr-x
Update bigtables tool: Add size of indexes.

#!/usr/bin/env python3

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()