(dir)
Update sys.path, reload gdb and auto-load packages.
Update sys.path, reload gdb and auto-load packages.
Update sys . path reload gdb and auto - load packages .
def GdbSetPythonDirectory(dir):
    """Update sys.path, reload gdb and auto-load packages."""
    global PYTHONDIR

    try:
        sys.path.remove(PYTHONDIR)
    except ValueError:
        pass
    sys.path.insert(0, dir)

    PYTHONDIR = dir

    # note that reload overwrites the gdb module without deleting existing
    # attributes
    reload(__import__(__name__))
    auto_load_packages()
def GdbSetPythonDirectory ( dir ) : global PYTHONDIR try : sys . path . remove ( PYTHONDIR ) except ValueError : pass sys . path . insert ( 0 , dir ) PYTHONDIR = dir # note that reload overwrites the gdb module without deleting existing # attributes reload ( __import__ ( __name__ ) ) auto_load_packages ( )