wscript: adopt to waf-2.0
authorAlexander Bokovoy <ab@samba.org>
Fri, 15 Jun 2018 14:03:28 +0000 (17:03 +0300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 5 Sep 2018 04:37:26 +0000 (06:37 +0200)
Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
wscript

diff --git a/wscript b/wscript
index dd4ceca9bc8baad3f7e9ad88fd89a7ea013c0f65..b2d16999829d06a5ba43c7f6935cdecea02a64b5 100644 (file)
--- a/wscript
+++ b/wscript
@@ -332,7 +332,7 @@ def configure(conf):
 
 def etags(ctx):
     '''build TAGS file using etags'''
-    import Utils
+    from waflib import Utils
     source_root = os.path.dirname(Utils.g_module.root_path)
     cmd = 'rm -f %s/TAGS && (find %s -name "*.[ch]" | egrep -v \.inst\. | xargs -n 100 etags -a)' % (source_root, source_root)
     print("Running: %s" % cmd)
@@ -342,7 +342,7 @@ def etags(ctx):
 
 def ctags(ctx):
     "build 'tags' file using ctags"
-    import Utils
+    from waflib import Utils
     source_root = os.path.dirname(Utils.g_module.root_path)
     cmd = 'ctags --python-kinds=-i $(find %s -name "*.[ch]" | grep -v "*_proto\.h" | egrep -v \.inst\.) $(find %s -name "*.py")' % (source_root, source_root)
     print("Running: %s" % cmd)