Fix Filetools > file_open (windows)

This commit is contained in:
Alhaziel01
2020-07-18 17:09:37 +02:00
parent 719d69150b
commit c41e4b9a3c

View File

@@ -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: