Source

vpackager / src / scripts / vpackager

Full commit
#!/usr/bin/env python

import gtk
from vpackager import bot
from vpackager import vpackager as vp
import sys

def RunBot():
    """run vpackager in bot mode"""
    w = bot.App()
    return w

def RunSolo():
    """Run the application in single build mode"""
    w = vp.Wizard()
    return w

if __name__ == '__main__':

    if sys.argv[-1] == '-s':
	w = RunSolo()
    else:
	w = RunBot()
    w.show_all()
    gtk.gdk.threads_init()
    gtk.main()