From 2e401d2475ce019a8e964ae6379dcc61c7334934 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Fri, 15 Jun 2018 17:03:28 +0300 Subject: wscript: adopt to waf-2.0 Signed-off-by: Alexander Bokovoy Reviewed-by: Andrew Bartlett --- wscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index dd4ceca9bc8..b2d16999829 100644 --- 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) -- cgit v1.2.1