[password-resets/feat/passwords-account: 2/10] fix(app): updated imports to use relative folders
- From: Claudio Wunder <cwunder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [password-resets/feat/passwords-account: 2/10] fix(app): updated imports to use relative folders
- Date: Sun, 22 Nov 2020 16:17:31 +0000 (UTC)
commit a327545eff70a9ceee0f7a56c7332fc8435458fb
Author: Claudio Wunder <cwunder gnome org>
Date: Sun Nov 22 16:53:24 2020 +0100
fix(app): updated imports to use relative folders
app.py | 6 ++++--
db/db.py | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/app.py b/app.py
index 672fb7e..1de4d81 100644
--- a/app.py
+++ b/app.py
@@ -19,9 +19,11 @@ DOCUMENT_ROOT = os.environ.get('DOCUMENT_ROOT')
sys.path.append(f"{ DOCUMENT_ROOT }/sysadmin-bin")
sys.path.append(f"{ DOCUMENT_ROOT }/db")
+
import gnome_ldap_utils
-from db import Token
-from base import Session
+
+from db.db import Token
+from db.base import Session
DOCUMENT_ROOT = os.environ.get('DOCUMENT_ROOT')
diff --git a/db/db.py b/db/db.py
index d3bd6f5..261bb2f 100644
--- a/db/db.py
+++ b/db/db.py
@@ -2,7 +2,7 @@
from sqlalchemy import Column, String, Integer, Date
-from base import Base
+from db.base import Base
class Token(Base):
__tablename__ = 'tokens'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]