fix venv encoding on windows (an potentially other systems)

This commit is contained in:
Believethehype 2024-06-25 11:35:08 +02:00
parent ddc36e0967
commit 422e64eccb
3 changed files with 3 additions and 3 deletions

View File

@ -672,7 +672,7 @@ class DVM:
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':

View File

@ -158,7 +158,7 @@ class DVMTaskInterface:
@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()

View File

@ -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')