Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
stl.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2 #
3 # File: GdbUtils/python/stl.py
4 # Created: A while ago, sss
5 # Purpose: Enable pretty-printing of STL types.
6 #
7 
8 import glob
9 import os
10 import sys
11 import subprocess
12 
13 gccbin = subprocess.getoutput ('which gcc')
14 gccdir = os.path.dirname(os.path.dirname(gccbin))
15 gccpydir = glob.glob(gccdir + '/share/*/python')[0]
16 sys.path.append (gccpydir)
17 
18 from libstdcxx.v6.printers import register_libstdcxx_printers
19 register_libstdcxx_printers(None)