Abide gtk cmdline options

By parsing opts later, GTK seems to auto parse and abide options like
--sync.
This commit is contained in:
Cole Robinson 2010-02-08 11:54:21 -05:00
parent 2194107152
commit 8322f75220

View File

@ -284,9 +284,6 @@ def main():
setup_i18n()
setup_pypath()
(options, ignore) = parse_commandline()
setup_logging(options.debug)
# Urgh, pygtk merely logs a warning when failing to open
# the X11 display connection, and lets everything carry
# on as if all were fine. Ultimately bad stuff happens,
@ -308,6 +305,9 @@ def main():
raise RuntimeError(_("Unable to initialize GTK: %s") % str(e))
warnings.resetwarnings()
(options, ignore) = parse_commandline()
setup_logging(options.debug)
# Make sure we have a sufficiently new virtinst version, since we are
# very closely tied to the lib
msg = ("virt-manager requires the python-virtinst library version " +