use hasattr instead of in

This commit is contained in:
AAGaming
2022-10-08 19:04:09 -04:00
parent d689614c78
commit dbcb549ae2
+1 -1
View File
@@ -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