commit a89477ba25f23dd4642bafed020ffcd0696274dc
parent 918c76b5ab5bdf5a88116767e611d8a9e634056d
Author: nolash <dev@holbrook.no>
Date: Thu, 3 Jun 2021 22:30:08 +0200
Remove dead import
Diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/scripts/migrate.py b/scripts/migrate.py
@@ -7,10 +7,6 @@ import logging
import alembic
from alembic.config import Config as AlembicConfig
import confini
-from xdg.BaseDirectory import (
- xdg_data_dirs,
- load_first_config,
- )
import chainqueue.db
import chainsyncer.db
@@ -27,7 +23,7 @@ default_migrations_dir = os.path.join(dbdir, 'migrations')
env = Environment(env=os.environ)
argparser = argparse.ArgumentParser()
-argparser.add_argument('-c', type=str, default=env.config_dir, help='config file')
+argparser.add_argument('-c', type=str, default=env.config_dir, help='config directory')
argparser.add_argument('--env-prefix', default=os.environ.get('CONFINI_ENV_PREFIX'), dest='env_prefix', type=str, help='environment prefix for variables to overwrite configuration')
argparser.add_argument('--data-dir', dest='data_dir', type=str, default=env.data_dir, help='data directory')
argparser.add_argument('--migrations-dir', dest='migrations_dir', default=default_migrations_dir, type=str, help='path to alembic migrations directory')
@@ -42,6 +38,7 @@ elif args.v:
logging.getLogger().setLevel(logging.INFO)
# process config
+logg.debug('loading config from {}'.format(args.c))
config = confini.Config(args.c, args.env_prefix)
config.process()
args_override = {