From c51e332d3c3451d44fbc3d980bfba01684f83da0 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Sat, 13 Jul 2024 15:19:56 -0500 Subject: [PATCH] removed disclaim.py --- disclaim.py | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 disclaim.py diff --git a/disclaim.py b/disclaim.py deleted file mode 100644 index fc66b5b42..000000000 --- a/disclaim.py +++ /dev/null @@ -1,24 +0,0 @@ -def _pyi_rthook(): - import sys - if sys.platform != 'darwin': - return - - # Avoid redundant disclaims - import os - if os.environ.get('PYI_DISCLAIMED'): - return - os.environ['PYI_DISCLAIMED'] = '1' - - # The bootloader has cleared the _MEIPASS2 environment variable by the - # time we get here, which means re-launching the executable disclaimed - # will unpack the binary again. To avoid this we reset _MEIPASS2 again, - # so that our re-launch will pick up at second stage of the bootstrap. - os.environ['_MEIPASS2'] = sys._MEIPASS - - import ctypes - library_path = os.path.join(sys._MEIPASS, 'libdisclaim.dylib') - libdisclaim = ctypes.cdll.LoadLibrary(library_path) - libdisclaim.disclaim() - -_pyi_rthook() -del _pyi_rthook