mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
pywxrc: fix embedded resources in python 2.7 and 3
It turns out that memoryview() was resulting in an empty file in python 2.7, whereas bytearray is working in both 2.7 and 3.
This commit is contained in:
@@ -226,7 +226,7 @@ def __init_resources():
|
||||
"""
|
||||
|
||||
ADD_FILE_TO_MEMFS = """\
|
||||
wx.MemoryFSHandler.AddFile('XRC/%(memoryPath)s/%(filename)s', memoryview(%(filename)s))
|
||||
wx.MemoryFSHandler.AddFile('XRC/%(memoryPath)s/%(filename)s', bytearray(%(filename)s))
|
||||
"""
|
||||
|
||||
LOAD_RES_MEMFS = """\
|
||||
|
||||
Reference in New Issue
Block a user