ATLAS Offline Software
Loading...
Searching...
No Matches
importcmd.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/findlib.py
4# Created: A while ago, sss
5# Purpose: Look up a shared library by address.
6#
7
8
9import gdb
10
11class ImportCmd (gdb.Command):
12 """Shorthand for python import.
13
14 import MOD will import the python module MOD.
15 """
16
17 def __init__ (self):
18 super (ImportCmd, self).__init__ ("import", gdb.COMMAND_FILES)
19 return
20
21 def invoke (self, arg, from_tty):
22 import importlib
23 importlib.import_module (arg)
24 return
25
invoke(self, arg, from_tty)
Definition importcmd.py:21