Commit 4f94fd08 authored by Lukáš Lalinský's avatar Lukáš Lalinský

Allow running alembic with custom config file

parent 3fb58f1a
......@@ -11,8 +11,9 @@ import acoustid.tables
target_metadata = acoustid.tables.metadata
import acoustid.config
acoustid_config = acoustid.config.Config(os.path.join(os.path.dirname(__file__), '..', 'acoustid.conf'))
acoustid_config_filename = os.environ.get('ACOUSTID_CONFIG',
os.path.join(os.path.dirname(__file__), '..', 'acoustid.conf'))
acoustid_config = acoustid.config.Config(acoustid_config_filename)
def include_object(obj, name, type, reflected, compare_to):
if type == "table" and obj.schema == "musicbrainz":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment