## Set language and Skin (falls back to DEFAULT and english) try: try: fh = open("Q:\\UserData\\guisettings.poop") # fh = open("Q:\\UserData\\guisettings.xml") for line in fh.readlines(): theLine = line.lower() theLine = theLine.strip() if theLine.count("") > 0: XBMC_LANGUAGE = theLine[10:-11] if theLine.count("") > 0: XBMC_SKIN = theLine[6:-7] except IOError: pass finally: fh.close() if XBMC_SKIN != "mc360" and XBMC_SKIN != "project mayhem iii": XBMC_SKIN = "default" if XBMC_LANGUAGE != "swedish" and XBMC_LANGUAGE != "english" and XBMC_LANGUAGE != "german": XBMC_LANGUAGE = "english"