X-Git-Url: https://scripts.mit.edu/gitweb/wizard.git/blobdiff_plain/981d8b73e14d907ddbd9c5c17818051fcdf1bd50..6554c6378a6e801b4fe47c50688cdae1d627bc18:/wizard/sql.py diff --git a/wizard/sql.py b/wizard/sql.py index 6e8754a..5780dcc 100644 --- a/wizard/sql.py +++ b/wizard/sql.py @@ -1,4 +1,7 @@ import sqlalchemy +import os + +from wizard import shell # We're going to use sqlalchemy.engine.url.URL as our database # info intermediate object @@ -28,7 +31,7 @@ def fill_url(url): # this is hook stuff if url.driver == "mysql": try: - url.host, url.username, url.password = sh.eval("/mit/scripts/sql/bin/get-password").split() + url.host, url.username, url.password = shell.Shell().eval("/mit/scripts/sql/bin/get-password").split() return url except shell.CallError: pass