Extended IS_BINARY func: added Nuitka compatibility

This commit is contained in:
AresValley
2022-10-04 01:39:40 +02:00
parent adf7421c94
commit fef8b71c46

View File

@@ -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()