summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAAGaming <aa@mail.catvibers.me>2022-10-08 19:04:09 -0400
committerAAGaming <aa@mail.catvibers.me>2022-10-08 19:04:09 -0400
commitdbcb549ae298c354f76517e1d3744facfbedb954 (patch)
treee3442ba137648b991771c946911ac68e3525430c
parentd689614c78a4f2d3c89ac48512748cd2051c4c95 (diff)
downloaddecky-loader-dbcb549ae298c354f76517e1d3744facfbedb954.tar.gz
decky-loader-dbcb549ae298c354f76517e1d3744facfbedb954.zip
use hasattr instead of in
-rw-r--r--backend/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/main.py b/backend/main.py
index 43a7fcac..ab64a3d9 100644
--- a/backend/main.py
+++ b/backend/main.py
@@ -1,7 +1,7 @@
# Change PyInstaller files permissions
import sys
from subprocess import call
-if "_MEIPASS" in sys:
+if hasattr(sys, '_MEIPASS'):
call(['chmod', '-R', '755', sys._MEIPASS])
# Full imports
from asyncio import get_event_loop, sleep