From ac30497dbc5ee765f702c64d7ac1d65218369b71 Mon Sep 17 00:00:00 2001 From: Escartem Date: Mon, 7 Apr 2025 10:01:20 +0200 Subject: [PATCH] Fix permission error --- allocator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allocator.py b/allocator.py index 65dfddb..9b41adf 100644 --- a/allocator.py +++ b/allocator.py @@ -7,7 +7,7 @@ class Allocator: self.files = {} 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) self.files[name] = mmap_object