Mongosql imports made celery get set up before we wanted it via ./bin/gmg commands
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 17 Mar 2012 17:31:11 +0000 (12:31 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 17 Mar 2012 17:31:11 +0000 (12:31 -0500)
Just moved the import into the actual function.  That resolved the issue!

mediagoblin/gmg_commands/mongosql.py

index a25263e2b325c88ffd0c5b7f1949d08137cda238..81a2830cbf2d48bf5019a5e2bd0d6207a1e9b64d 100644 (file)
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-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)