[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):"
This commit is contained in:
null 2021-01-18 18:54:00 +08:00 committed by GitHub
parent 0fb6a82223
commit 13927be259
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ def MkDist_Strip(program, BSP_ROOT, RTT_ROOT, Env):
if 'dist_handle' in Env: if 'dist_handle' in Env:
print("=> start dist handle") print("=> start dist handle")
dist_handle = Env['dist_handle'] dist_handle = Env['dist_handle']
dist_handle(BSP_ROOT) dist_handle(BSP_ROOT, dist_dir)
# get all source files from program # get all source files from program
for item in program: for item in program: