add some code
This commit is contained in:
13
managed_components/lvgl__lvgl/scripts/gdb/gdbinit.py
Normal file
13
managed_components/lvgl__lvgl/scripts/gdb/gdbinit.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import sys
|
||||
from os import path
|
||||
|
||||
here = path.dirname(path.abspath(__file__))
|
||||
|
||||
if __name__ == "__main__":
|
||||
if here not in sys.path:
|
||||
sys.path.insert(0, here)
|
||||
|
||||
for key in tuple(filter(lambda m: m.startswith("lvglgdb"), sys.modules.keys())):
|
||||
del sys.modules[key]
|
||||
|
||||
import lvglgdb # noqa: F401
|
||||
Reference in New Issue
Block a user