temporary fix for wxPyAssertion from XRC library
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31146
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
dom = minidom.parse(f)
f.close()
# Set encoding global variable
dom = minidom.parse(f)
f.close()
# Set encoding global variable
- g.currentEncoding = dom.encoding
+ if dom.encoding: g.currentEncoding = dom.encoding
# Change dir
dir = os.path.dirname(path)
if dir: os.chdir(dir)
# Change dir
dir = os.path.dirname(path)
if dir: os.chdir(dir)
frame.Show(True)
# Load resources from XRC file (!!! should be transformed to .py later?)
frame.res = wxXmlResource('')
frame.Show(True)
# Load resources from XRC file (!!! should be transformed to .py later?)
frame.res = wxXmlResource('')
- frame.res.Load(os.path.join(basePath, 'xrced.xrc'))
+ # !!! Temporary blocking of assert failure occuring in unicode build
+ try:
+ frame.res.Load(os.path.join(basePath, 'xrced.xrc'))
+ except wx._core.PyAssertionError:
+ pass
# Load file after showing
if args:
# Load file after showing
if args: