diff options
| author | Nik <werwolv98@gmail.com> | 2022-12-16 15:23:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-16 06:23:04 -0800 |
| commit | 0474095a40ba6cb729064654d22efd88f91958d6 (patch) | |
| tree | 12f26a43c6f16477bdac1b24a7991599662138e1 /backend/browser.py | |
| parent | 346f80beb31d1e2a95d31a5997b5a233d08e0645 (diff) | |
| download | decky-loader-0474095a40ba6cb729064654d22efd88f91958d6.tar.gz decky-loader-0474095a40ba6cb729064654d22efd88f91958d6.zip | |
Potentially fix locale issues (#284)v2.4.6-pre5
Diffstat (limited to 'backend/browser.py')
| -rw-r--r-- | backend/browser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/browser.py b/backend/browser.py index 69f82bdb..f6cae5d3 100644 --- a/backend/browser.py +++ b/backend/browser.py @@ -55,7 +55,7 @@ class PluginBrowser: pluginBinPath = path.join(pluginBasePath, 'bin') if access(packageJsonPath, R_OK): - with open(packageJsonPath, 'r') as f: + with open(packageJsonPath, "r", encoding="utf-8") as f: packageJson = json.load(f) if "remote_binary" in packageJson and len(packageJson["remote_binary"]) > 0: # create bin directory if needed. @@ -93,7 +93,7 @@ class PluginBrowser: def find_plugin_folder(self, name): for folder in listdir(self.plugin_path): try: - with open(path.join(self.plugin_path, folder, 'plugin.json'), 'r') as f: + with open(path.join(self.plugin_path, folder, 'plugin.json'), "r", encoding="utf-8") as f: plugin = json.load(f) if plugin['name'] == name: |
