mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2026-08-25 07:36:41 +00:00
17 lines
334 B
Python
17 lines
334 B
Python
"""PyInstaller runtime hook for opt-in Qortal Python diagnostics."""
|
|
|
|
import os
|
|
|
|
if str(os.environ.get("QORTAL_PYTHON_DIAGNOSTICS", "")).strip().lower() in {
|
|
"1",
|
|
"true",
|
|
"yes",
|
|
"on",
|
|
}:
|
|
try:
|
|
from qortal_python_diagnostics import start_from_env
|
|
|
|
start_from_env()
|
|
except Exception:
|
|
pass
|