summaryrefslogtreecommitdiff
path: root/alembic/script.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-11-08 12:16:31 -0800
committerMike Bayer <mike_mp@zzzcomputing.com>2011-11-08 12:16:31 -0800
commit0ed98936b1a30f8b2392bc7f3e87fe70b2d4e4c0 (patch)
tree5e61b309d310644b07b38191900cdf69a87c5094 /alembic/script.py
parenteb9a15c382c20fde5b358219897a08373db1796f (diff)
downloadalembic-0ed98936b1a30f8b2392bc7f3e87fe70b2d4e4c0.tar.gz
docs
Diffstat (limited to 'alembic/script.py')
-rw-r--r--alembic/script.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/alembic/script.py b/alembic/script.py
index 9784d68..a8ac9a0 100644
--- a/alembic/script.py
+++ b/alembic/script.py
@@ -99,6 +99,18 @@ class ScriptDirectory(object):
]
def run_env(self):
+ """Run the script environment.
+
+ This basically runs the ``env.py`` script present
+ in the migration environment. It is called exclusively
+ by the command functions in :mod:`alembic.command`.
+
+ As ``env.py`` runs :func:`.context.configure_connection`,
+ the connection environment should be set up first. This
+ is typically achieved using the :func:`.context.opts`.
+
+
+ """
util.load_python_file(self.dir, 'env.py')
@util.memoized_property