From 209eaf5cea74c5d207e2f7262ee5c4c2f0d8bd4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20M=C2=AA=20Fern=C3=A1ndez?= Date: Tue, 10 Nov 2026 23:37:48 +0100 Subject: [PATCH] Fixed case where LD_LIBRARY_PATH did no exist before pyinstaller --- treecript/collector.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/treecript/collector.py b/treecript/collector.py index d16cfee..72f3c38 100644 --- a/treecript/collector.py +++ b/treecript/collector.py @@ -218,6 +218,8 @@ def execution_metrics_collector( the_env = dict(os.environ) if "LD_LIBRARY_PATH_ORIG" in the_env: the_env["LD_LIBRARY_PATH"] = the_env.pop("LD_LIBRARY_PATH_ORIG") + elif "LD_LIBRARY_PATH" in the_env: + del the_env["LD_LIBRARY_PATH"] for env_name in ( "_PYI_ARCHIVE_FILE", "_PYI_PARENT_PROCESS_LEVEL",