pgconsole.py
author Radek Brich <radek.brich@devl.cz>
Tue, 04 Feb 2014 16:10:04 +0100
changeset 94 a10f553e6f6a
parent 93 b72591087495
permissions -rwxr-xr-x
PgDiff: Add patch support for SQL functions.

#!/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()