From: Christopher Allan Webber Date: Sat, 17 Mar 2012 17:31:11 +0000 (-0500) Subject: Mongosql imports made celery get set up before we wanted it via ./bin/gmg commands X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=431811eb36d9b1f5e754886481322eb2848e5dd0;p=mediagoblin.git Mongosql imports made celery get set up before we wanted it via ./bin/gmg commands Just moved the import into the actual function. That resolved the issue! --- diff --git a/mediagoblin/gmg_commands/mongosql.py b/mediagoblin/gmg_commands/mongosql.py index a25263e2..81a2830c 100644 --- a/mediagoblin/gmg_commands/mongosql.py +++ b/mediagoblin/gmg_commands/mongosql.py @@ -14,12 +14,11 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -from mediagoblin.db.sql.convert import run_conversion - def mongosql_parser_setup(subparser): pass def mongosql(args): + from mediagoblin.db.sql.convert import run_conversion run_conversion(args.conf_file)