is there a reason why script_location is required for developing with alembic.config.Config, but assumed when just using the commandline alembic
#1735
Answered
by
zzzeek
jvanasco
asked this question in
Usage Questions
-
|
An Is this on purpose or just a quirk? A workaround is easy, but I'm just wondering if I've hit an antipattern. CONFIG_file = os.path.join(data_dir, "config.ini")
CONFIG = Config(CONFIG_file)
if not CONFIG.get_section_option("alembic", "script_location"):
CONFIG.set_section_option("alembic", "script_location", "alembic") |
Beta Was this translation helpful? Give feedback.
Answered by
zzzeek
Oct 10, 2025
Replies: 1 comment 10 replies
-
|
script location is always needed otherwise alembic has no way to know anything about the current revision tree |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
do you have a pyproject.toml with an alembic section floating around?