~sircmpwn/hiprompt-gtk-py

f0d2af666a8ccac134af773d66f9bb367aeb511a — Martijn Braam 2 years ago 4c360e1
Fix launching as a module
2 files changed, 4 insertions(+), 0 deletions(-)

M hiprompt_gtk/display.py
M hiprompt_gtk/hiprompt-gtk.in -rw-r--r-- => -rwxr-xr-x
M hiprompt_gtk/display.py => hiprompt_gtk/display.py +4 -0
@@ 30,6 30,10 @@ class Application(Gtk.Application):
            sys.stderr.write("Using resources from cwd\n")
            resource = Gio.resource_load("hiprompt.gresource")
            Gio.Resource._register(resource)
        elif os.path.isfile('hiprompt_gtk/hiprompt.gresource'):
            sys.stderr.write("Using resources from cwd/hiprompt_gtk\n")
            resource = Gio.resource_load("hiprompt_gtk/hiprompt.gresource")
            Gio.Resource._register(resource)

        Gtk.Application.__init__(self, application_id=application_id)
        self.connect("activate", self.activate)

M hiprompt_gtk/hiprompt-gtk.in => hiprompt_gtk/hiprompt-gtk.in +0 -0