From d15b2703ced177c4d09b9e347ab5d50ee966859e Mon Sep 17 00:00:00 2001 From: Daniel Tsvetkov Date: Wed, 18 Mar 2020 11:07:53 +0100 Subject: [PATCH] try to package... --- oshipka.py | 4 ++-- src/{persistance => oshipka}/__init__.py | 0 src/oshipka/persistance/__init__.py | 0 src/{ => oshipka}/persistance/models.py | 0 src/{ => oshipka}/persistance/populate.py | 2 +- src/{ => oshipka}/webapp/__init__.py | 0 6 files changed, 3 insertions(+), 3 deletions(-) rename src/{persistance => oshipka}/__init__.py (100%) create mode 100644 src/oshipka/persistance/__init__.py rename src/{ => oshipka}/persistance/models.py (100%) rename src/{ => oshipka}/persistance/populate.py (92%) rename src/{ => oshipka}/webapp/__init__.py (100%) diff --git a/oshipka.py b/oshipka.py index 2813b42..7b92f26 100644 --- a/oshipka.py +++ b/oshipka.py @@ -1,5 +1,5 @@ -from src.persistance import init_db -from src.webapp import app +from oshipka.persistance import init_db +from oshipka.webapp import app if __name__ == "__main__": init_db(app) diff --git a/src/persistance/__init__.py b/src/oshipka/__init__.py similarity index 100% rename from src/persistance/__init__.py rename to src/oshipka/__init__.py diff --git a/src/oshipka/persistance/__init__.py b/src/oshipka/persistance/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/persistance/models.py b/src/oshipka/persistance/models.py similarity index 100% rename from src/persistance/models.py rename to src/oshipka/persistance/models.py diff --git a/src/persistance/populate.py b/src/oshipka/persistance/populate.py similarity index 92% rename from src/persistance/populate.py rename to src/oshipka/persistance/populate.py index 51f85c0..dd8ce58 100644 --- a/src/persistance/populate.py +++ b/src/oshipka/persistance/populate.py @@ -1,7 +1,7 @@ import os from config import SQLALCHEMY_DATABASE_URI, MAKEDIRS, DATABASE_FILE -from src.persistance.models import db +from oshipka.persistance.models import db def populate_db(app): diff --git a/src/webapp/__init__.py b/src/oshipka/webapp/__init__.py similarity index 100% rename from src/webapp/__init__.py rename to src/oshipka/webapp/__init__.py