def decouple(prefix): ' Ensure that config files used by utility code are not the same as those used by the main calibre GUI ' dynamic.decouple(prefix) from calibre.gui2.widgets import history history.decouple(prefix)