1
0
mirror of https://github.com/Escartem/AnimeWwise.git synced 2026-06-04 23:40:25 +08:00

Fix permission error

This commit is contained in:
Escartem
2025-04-07 10:01:20 +02:00
committed by GitHub
parent 5ddbf6a39f
commit ac30497dbc

View File

@@ -7,7 +7,7 @@ class Allocator:
self.files = {} self.files = {}
def load_file(self, path, name): def load_file(self, path, name):
with open(path, "r+b") as f: with open(path, "rb") as f:
mmap_object = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) mmap_object = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)
self.files[name] = mmap_object self.files[name] = mmap_object