Str was removed so that unicode works.
This commit is contained in:
parent
19c8f08c61
commit
037230b206
1 changed files with 1 additions and 1 deletions
2
pe.py
2
pe.py
|
|
@ -1237,7 +1237,7 @@ class PEFile(Printable):
|
|||
of the file, but that did not work. Comments were left as history
|
||||
to what I attempted.
|
||||
"""
|
||||
icon_path = str(os.path.expanduser(icon_path)) #this needs to be a string and not unicode
|
||||
icon_path = os.path.expanduser(icon_path) #this needs to be a string and not unicode
|
||||
|
||||
if not os.path.exists(icon_path):
|
||||
raise Exception('Icon {} does not exist'.format(icon_path))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue