Explorar o código

[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):"
null %!s(int64=4) %!d(string=hai) anos
pai
achega
13927be259
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/mkdist.py

+ 1 - 1
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: