mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-04-09 04:18:17 +02:00
fix venv encoding on windows (an potentially other systems)
This commit is contained in:
parent
ddc36e0967
commit
422e64eccb
@ -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':
|
||||
|
@ -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()
|
||||
|
||||
|
2
setup.py
2
setup.py
@ -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')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user