ATLAS Offline Software
Loading...
Searching...
No Matches
python.importcmd.ImportCmd Class Reference
Inheritance diagram for python.importcmd.ImportCmd:
Collaboration diagram for python.importcmd.ImportCmd:

Public Member Functions

 __init__ (self)
 invoke (self, arg, from_tty)

Detailed Description

Shorthand for python import.

import MOD will import the python module MOD.

Definition at line 11 of file importcmd.py.

Constructor & Destructor Documentation

◆ __init__()

python.importcmd.ImportCmd.__init__ ( self)

Definition at line 17 of file importcmd.py.

17 def __init__ (self):
18 super (ImportCmd, self).__init__ ("import", gdb.COMMAND_FILES)
19 return
20

Member Function Documentation

◆ invoke()

python.importcmd.ImportCmd.invoke ( self,
arg,
from_tty )

Definition at line 21 of file importcmd.py.

21 def invoke (self, arg, from_tty):
22 import importlib
23 importlib.import_module (arg)
24 return
25

The documentation for this class was generated from the following file: