@@ -30,16 +30,15 @@ def find_usermod(mod: str):
30
30
src_dir = src_dir .replace ('\\ ' ,'/' )
31
31
mod_paths = {mod : find_usermod (mod ) for mod in usermods .split (" " )}
32
32
usermods = [f"{ mod } = symlink://{ path } " for mod , path in mod_paths .items ()]
33
- print (deps )
34
33
proj .set ("env:" + env ['PIOENV' ], 'lib_deps' , deps + usermods )
35
- print (env .GetProjectOption ('lib_deps' ))
36
34
37
35
38
36
# Monkey-patch ConfigureProjectLibBuilder to mark up the dependencies
39
37
# Save the old value
40
- cpl = env .ConfigureProjectLibBuilder
38
+ cplb = env .ConfigureProjectLibBuilder
41
39
# Our new wrapper
42
- def cpl_wrapper (xenv ):
40
+ def cplb_wrapper (xenv ):
41
+ wrapper_result = cplb .clone (xenv )()
43
42
# Update usermod properties
44
43
lib_builders = xenv .GetLibBuilders ()
45
44
wled_dir = xenv ["PROJECT_SRC_DIR" ]
@@ -63,8 +62,8 @@ def cpl_wrapper(xenv):
63
62
build = um ._manifest .get ("build" , {})
64
63
build ["libArchive" ] = False
65
64
um ._manifest ["build" ] = build
66
- return cpl . clone ( xenv )()
65
+ return wrapper_result
67
66
68
67
69
68
# Replace the old one with ours
70
- env .AddMethod (cpl_wrapper , "ConfigureProjectLibBuilder" )
69
+ env .AddMethod (cplb_wrapper , "ConfigureProjectLibBuilder" )
0 commit comments