Extended IS_BINARY func: added Nuitka compatibility
This commit is contained in:
@@ -6,7 +6,7 @@ import os.path
|
|||||||
|
|
||||||
def _is_executable_version():
|
def _is_executable_version():
|
||||||
"""Return whether the binary version is running."""
|
"""Return whether the binary version is running."""
|
||||||
return hasattr(sys, "_MEIPASS")
|
return hasattr(sys, "_MEIPASS") or "__compiled__" in globals()
|
||||||
|
|
||||||
|
|
||||||
IS_BINARY = _is_executable_version()
|
IS_BINARY = _is_executable_version()
|
||||||
|
|||||||
Reference in New Issue
Block a user