From 13927be259c9bf42a6a36407212003d6caf02246 Mon Sep 17 00:00:00 2001 From: null <2584456014@qq.com> Date: Mon, 18 Jan 2021 18:54:00 +0800 Subject: [PATCH] [fix] miss arguments when invoke dist_handle Use this command: `scons --dist-strip` to detach project. but it aborted with error: "TypeError: dist_handle() takes exactly 2 arguments (1 given):" --- tools/mkdist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mkdist.py b/tools/mkdist.py index a1dafd25cb..7765873baa 100644 --- a/tools/mkdist.py +++ b/tools/mkdist.py @@ -218,7 +218,7 @@ def MkDist_Strip(program, BSP_ROOT, RTT_ROOT, Env): if 'dist_handle' in Env: print("=> start dist handle") dist_handle = Env['dist_handle'] - dist_handle(BSP_ROOT) + dist_handle(BSP_ROOT, dist_dir) # get all source files from program for item in program: