From fef8b71c4648f229a10ac173071406946dcccd00 Mon Sep 17 00:00:00 2001 From: AresValley Date: Tue, 4 Oct 2022 01:39:40 +0200 Subject: [PATCH] Extended IS_BINARY func: added Nuitka compatibility --- src/executable_utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/executable_utilities.py b/src/executable_utilities.py index 20f72c2..c8dae22 100644 --- a/src/executable_utilities.py +++ b/src/executable_utilities.py @@ -6,7 +6,7 @@ import os.path def _is_executable_version(): """Return whether the binary version is running.""" - return hasattr(sys, "_MEIPASS") + return hasattr(sys, "_MEIPASS") or "__compiled__" in globals() IS_BINARY = _is_executable_version()