summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/setup.py3
-rwxr-xr-xpyLoadCore.py5
2 files changed, 2 insertions, 6 deletions
diff --git a/module/setup.py b/module/setup.py
index 144f38127..dfb88d970 100644
--- a/module/setup.py
+++ b/module/setup.py
@@ -294,8 +294,7 @@ class Setup():
translation = gettext.translation("setup", join(self.path, "locale"), languages=["en", self.config["general"]["language"]])
translation.install(unicode=(True if sys.getfilesystemencoding().startswith("utf") else False))
- from module.DatabaseBackend import DatabaseBackend
- import module.UserDatabase #register user backend
+ from module.database import DatabaseBackend
db = DatabaseBackend(None)
db.setup()
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 9e3e1053a..48568edf6 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -62,11 +62,8 @@ from module.Scheduler import Scheduler
from module.JsEngine import JsEngine
from module.remote.RemoteManager import RemoteManager
from module.database import DatabaseBackend
-
-#registering db methods
from module.database import FileHandler
-from module.database import UserMethods
-from module.database import StorageMethods
+
from codecs import getwriter
if os.name == "nt":