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

Commit

Permalink
Merge pull request #18 from Garulf/fix-settings-encoding
Browse files Browse the repository at this point in the history
Fix settings encoding
  • Loading branch information
Garulf committed Apr 2, 2023
2 parents bdc03ba + 69992a6 commit 6d2086d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions flox/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def plugindir(self):

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

@cached_property
Expand All @@ -236,7 +236,7 @@ def appdata(self):

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

@property
Expand Down
2 changes: 1 addition & 1 deletion flox/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.19.3
0.19.4

0 comments on commit 6d2086d

Please sign in to comment.