Made sure pythonmagick image is given a string, not unicode.

This commit is contained in:
Joey Payne 2014-10-19 16:16:56 +13:00
commit 51525eddff

2
pe.py
View file

@ -1222,7 +1222,7 @@ class PEFile(Printable):
of the file, but that did not work. Comments were left as history
to what I attempted.
"""
icon_path = os.path.expanduser(icon_path)
icon_path = str(os.path.expanduser(icon_path)) #this needs to be a string and not unicode
if pm is None:
raise Exception('PythonMagick is required to run this function.')