From e9d2803b104eeffb7bd08ce6b77083e76e011480 Mon Sep 17 00:00:00 2001 From: Vincenzo Eduardo Padulano Date: Wed, 27 Nov 2024 11:01:36 +0100 Subject: [PATCH] [python] Avoid interfering with gc at exit time --- .../pyroot/pythonizations/python/ROOT/__init__.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/bindings/pyroot/pythonizations/python/ROOT/__init__.py b/bindings/pyroot/pythonizations/python/ROOT/__init__.py index 5b14647ca1b70..b8b0e04dfa7ad 100644 --- a/bindings/pyroot/pythonizations/python/ROOT/__init__.py +++ b/bindings/pyroot/pythonizations/python/ROOT/__init__.py @@ -184,15 +184,4 @@ def cleanup(): facade.__dict__["app"].keep_polling = False facade.__dict__["app"].process_root_events.join() - if "libROOTPythonizations" in sys.modules: - - from ROOT import PyConfig - - if PyConfig.ShutDown: - # Hard teardown: run part of the gROOT shutdown sequence. - # Running it here ensures that it is done before any ROOT libraries - # are off-loaded, with unspecified order of static object destruction. - facade.gROOT.EndOfProcessCleanups() - - atexit.register(cleanup)