Skip to content

Commit

Permalink
[python] Avoid interfering with gc at exit time
Browse files Browse the repository at this point in the history
  • Loading branch information
vepadulano authored and dpiparo committed Nov 27, 2024
1 parent 8db2ac8 commit e9d2803
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions bindings/pyroot/pythonizations/python/ROOT/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit e9d2803

Please sign in to comment.