#!/usr/bin/env python

##This will work in development on a relative folder basis
##It will then work when installed in site-packages on a target system
##where the runner script is in /usr/bin (or wherever)
##
##So, you don't need anything special - no fancy path tricks.

import KernelCheck.main, os, gtk, sys

# Close the about window
def close(w, res):
    if res == gtk.RESPONSE_CLOSE:
        sys.exit(100)

if not os.geteuid()==0:
    error = gtk.MessageDialog (None, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE, 'Only root can run this script.')
    error.connect("response", close)
    error.run()

KernelCheck.main.start ()
