mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +00:00
use hasattr instead of in
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
# Change PyInstaller files permissions
|
# Change PyInstaller files permissions
|
||||||
import sys
|
import sys
|
||||||
from subprocess import call
|
from subprocess import call
|
||||||
if "_MEIPASS" in sys:
|
if hasattr(sys, '_MEIPASS'):
|
||||||
call(['chmod', '-R', '755', sys._MEIPASS])
|
call(['chmod', '-R', '755', sys._MEIPASS])
|
||||||
# Full imports
|
# Full imports
|
||||||
from asyncio import get_event_loop, sleep
|
from asyncio import get_event_loop, sleep
|
||||||
|
|||||||
Reference in New Issue
Block a user