def main():
    parser = optparse.OptionParser()
    parser.add_option(
        '--configure', dest="configure", help="Open configuration dialog"
        "and quit.", action="store_true", default=False)
    parser.add_option(
        '--download', dest="download", help="Download photos and quit.",
        action="store_true", default=False)
    options, args = parser.parse_args()

    gtk.gdk.threads_init()
    if options.configure:
        configure()
        return

    if options.download:
        download_dialog = DownloadDialog.DownloadProgressDialog(config)
        main_window = download_dialog
        download_dialog.top_widget.connect('destroy', gtk.main_quit)
        download_dialog.show()
        gtk.main()
        return

    if args:
        import_files(args)
        return

    main_window = WebilderDesktopWindow()
    main_window.top_widget.connect("destroy", gtk.main_quit)
    gtk.main()
Sets the logical_id of an existing disk
dataset/ETHPy150Open thesamet/webilder/src/webilder/WebilderDesktop.py/main--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/config/__init__.py/ConfigWriter.SetDiskLogicalID