From d689614c78a4f2d3c89ac48512748cd2051c4c95 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Sat, 8 Oct 2022 17:57:51 -0400 Subject: possibly fix zip permissions --- backend/main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'backend/main.py') diff --git a/backend/main.py b/backend/main.py index aa38d8ac..43a7fcac 100644 --- a/backend/main.py +++ b/backend/main.py @@ -1,9 +1,13 @@ +# Change PyInstaller files permissions +import sys +from subprocess import call +if "_MEIPASS" in sys: + call(['chmod', '-R', '755', sys._MEIPASS]) # Full imports from asyncio import get_event_loop, sleep from json import dumps, loads from logging import DEBUG, INFO, basicConfig, getLogger -from os import getenv, path -from subprocess import call +from os import getenv, chmod from traceback import format_exc import aiohttp_cors -- cgit v1.2.3