Fix core module import
AbandonedPublic

Authored by scarpino on Apr 29 2017, 6:03 PM.

Details

Reviewers
alexmerry
Summary

Sourcing load-qt5printers.py produces the following error:

$ gdb
Traceback (most recent call last):
  File "/usr/share/kde-dev-scripts/gdb/load-qt5printers.py", line 43, in <module>
    import qt5printers
  File "/usr/share/kde-dev-scripts/gdb/qt5printers/__init__.py", line 22, in <module>
    import core
ModuleNotFoundError: No module named 'core'
Test Plan

Put the following to ~/.gdbinit and start gdb.

$ cat ~/.gdbinit
source /usr/share/kde-dev-scripts/gdb/load-qt5printers.py

Diff Detail

Repository
R230 KDE Development Scripts
Lint
Lint Skipped
Unit
Unit Tests Skipped
scarpino created this revision.Apr 29 2017, 6:03 PM
scarpino added a reviewer: alexmerry.

There is another proposal at D5823; if you can check it and agree on the cleanest one, it would simplify the review :)

scarpino abandoned this revision.May 12 2017, 9:46 PM

That looks better!