mirror of
https://github.com/noDRM/DeDRM_tools.git
synced 2025-10-23 23:07:47 -04:00
Merge pull request #1398 from xxyzz/config
return str from load_resource()
This commit is contained in:
commit
13e9a14907
1 changed files with 1 additions and 1 deletions
|
|
@ -175,7 +175,7 @@ class ConfigWidget(QWidget):
|
||||||
def load_resource(self, name):
|
def load_resource(self, name):
|
||||||
with ZipFile(self.plugin_path, 'r') as zf:
|
with ZipFile(self.plugin_path, 'r') as zf:
|
||||||
if name in zf.namelist():
|
if name in zf.namelist():
|
||||||
return zf.read(name)
|
return zf.read(name).decode('utf-8')
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue