mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-03-27 04:53:31 +01:00
Cut off cross importing things.
There was (and perhaps it exists in other modules, need to check) a bad habit of importing objects out of module A into B just to be able of import those object from module B. In this case there was import from module config_base into module config. This commit fix this.
This commit is contained in:
@@ -10,7 +10,7 @@ __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||
|
||||
def db(path=None, read_only=False):
|
||||
from ebook_converter.db.legacy import LibraryDatabase
|
||||
from ebook_converter.utils.config import prefs
|
||||
from ebook_converter.utils.config_base import prefs
|
||||
return LibraryDatabase(os.path.expanduser(path) if path else prefs['library_path'],
|
||||
read_only=read_only)
|
||||
|
||||
@@ -69,7 +69,7 @@ def generate_test_db(library_path, # {{{
|
||||
|
||||
|
||||
def current_library_path():
|
||||
from ebook_converter.utils.config import prefs
|
||||
from ebook_converter.utils.config_base import prefs
|
||||
path = prefs['library_path']
|
||||
if path:
|
||||
path = path.replace('\\', '/')
|
||||
|
||||
Reference in New Issue
Block a user