diff -r 0b936ff1bbb9 -r a2bc06a54d9d src/eric7/Preferences/Shortcuts.py --- a/src/eric7/Preferences/Shortcuts.py Sun Nov 06 11:22:39 2022 +0100 +++ b/src/eric7/Preferences/Shortcuts.py Mon Nov 07 17:19:58 2022 +0100 @@ -14,8 +14,11 @@ from eric7.EricWidgets import EricMessageBox from eric7.EricWidgets.EricApplication import ericApp +from eric7.EricXML.ShortcutsReader import ShortcutsReader from eric7.Preferences import Prefs, syncPreferences +from .ShortcutsFile import ShortcutsFile + def __readShortcut(act, category, prefClass): """ @@ -209,8 +212,6 @@ pm = ericApp().getObject("PluginManager") pm.initOnDemandPlugins() - from .ShortcutsFile import ShortcutsFile - shortcutsFile = ShortcutsFile() shortcutsFile.writeFile(fn, helpViewer) @@ -230,8 +231,6 @@ if fn.endswith(".ekj"): # new JSON based file - from .ShortcutsFile import ShortcutsFile - shortcutsFile = ShortcutsFile() shortcuts = shortcutsFile.readFile(fn) if shortcuts: @@ -242,8 +241,6 @@ # old XML based file f = QFile(fn) if f.open(QIODevice.OpenModeFlag.ReadOnly): - from eric7.EricXML.ShortcutsReader import ShortcutsReader - reader = ShortcutsReader(f) reader.readXML() f.close()