Skip to content

Commit

Permalink
fix venv encoding on windows (an potentially other systems)
Browse files Browse the repository at this point in the history
  • Loading branch information
believethehype committed Jun 25, 2024
1 parent ddc36e0 commit 422e64e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nostr_dvm/dvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ async def do_work(job_event, amount):
await run_subprocess(python_bin, dvm_config, request_form)
print("Finished processing, loading data..")

with open(os.path.abspath('output.txt')) as f:
with open(os.path.abspath('output.txt'), encoding="utf-8") as f:
resultall = f.readlines()
for line in resultall:
if line != '\n':
Expand Down
2 changes: 1 addition & 1 deletion nostr_dvm/interfaces/dvmtaskinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def process_args():

@staticmethod
def write_output(result, output):
with open(os.path.abspath(output), 'w') as f:
with open(os.path.abspath(output), 'w', encoding="utf8") as f:
f.write(result)
# f.close()

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

VERSION = '0.6.22'
VERSION = '0.6.23'
DESCRIPTION = 'A framework to build and run Nostr NIP90 Data Vending Machines'
LONG_DESCRIPTION = ('A framework to build and run Nostr NIP90 Data Vending Machines. See the github repository for more information')

Expand Down

0 comments on commit 422e64e

Please sign in to comment.