[c-c serverctl] import locally to speed up c-c
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 05 Apr 2013 14:44:03 +0200
changeset 8924 8666438778c7
parent 8922 715b9eec6da9
child 8925 57f8a02550cc
child 8926 336e4971dc50
[c-c serverctl] import locally to speed up c-c
server/serverctl.py
--- a/server/serverctl.py	Wed Apr 24 18:11:37 2013 +0200
+++ b/server/serverctl.py	Fri Apr 05 14:44:03 2013 +0200
@@ -39,7 +39,6 @@
 from cubicweb.server.serverconfig import (
     USER_OPTIONS, ServerConfiguration, SourceConfiguration,
     ask_source_config, generate_source_config)
-from yams.diff import schema_diff
 
 # utility functions ###########################################################
 
@@ -1077,6 +1076,7 @@
     min_args = max_args = 2
 
     def run(self, args):
+        from yams.diff import schema_diff
         appid = args.pop(0)
         diff_tool = args.pop(0)
         config = ServerConfiguration.config_for(appid)