From c41e4b9a3c8a7fa5616104ab68296f6b0532a6d1 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Sat, 18 Jul 2020 17:09:37 +0200 Subject: [PATCH] Fix Filetools > file_open (windows) --- core/filetools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/filetools.py b/core/filetools.py index bce73317..554a2671 100644 --- a/core/filetools.py +++ b/core/filetools.py @@ -244,7 +244,8 @@ def file_open(path, mode="r", silent=False, vfs=True): if fileIo: return io.FileIO(path, mode) else: - return io.open(path, mode, encoding='utf-8') + # return io.open(path, mode, decode='utf-8') + return open(path, mode) except: logger.error("ERROR when opening file: %s, %s" % (path, mode)) if not silent: