From cce15450243f1e8a783aa4720f73bfa36084dde6 Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Sat, 28 Nov 2009 21:11:52 +0000 Subject: [PATCH] add gui stuff to test, stop crash if xml.dom.ext not present --- pyfpdb/Configuration.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pyfpdb/Configuration.py b/pyfpdb/Configuration.py index 728ffd5c..83648577 100755 --- a/pyfpdb/Configuration.py +++ b/pyfpdb/Configuration.py @@ -960,8 +960,14 @@ if __name__== "__main__": for game in c.get_supported_games(): print c.get_game_parameters(game) + for hud_param, value in c.get_hud_ui_parameters().iteritems(): + print "hud param %s = %s" % (hud_param, value) + print "start up path = ", c.execution_path("") - from xml.dom.ext import PrettyPrint - for site_node in c.doc.getElementsByTagName("site"): - PrettyPrint(site_node, stream=sys.stdout, encoding="utf-8") + try: + from xml.dom.ext import PrettyPrint + for site_node in c.doc.getElementsByTagName("site"): + PrettyPrint(site_node, stream=sys.stdout, encoding="utf-8") + except: + print "xml.dom.ext needs PyXML to be installed!"