Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit 6d2086d

Browse files
authored
Merge pull request #18 from Garulf/fix-settings-encoding
Fix settings encoding
2 parents bdc03ba + 69992a6 commit 6d2086d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

flox/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def plugindir(self):
210210

211211
@cached_property
212212
def manifest(self):
213-
with open(os.path.join(self.plugindir, PLUGIN_MANIFEST), 'r') as f:
213+
with open(os.path.join(self.plugindir, PLUGIN_MANIFEST), 'r', encoding='utf-8') as f:
214214
return json.load(f)
215215

216216
@cached_property
@@ -236,7 +236,7 @@ def appdata(self):
236236

237237
@property
238238
def app_settings(self):
239-
with open(os.path.join(self.appdata, 'Settings', 'Settings.json'), 'r') as f:
239+
with open(os.path.join(self.appdata, 'Settings', 'Settings.json'), 'r', encoding='utf-8') as f:
240240
return json.load(f)
241241

242242
@property

flox/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.19.3
1+
0.19.4

0 commit comments

Comments
 (0)