mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-24 05:34:45 -07:00
Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import SCons
|
||||
from SCons.Script import Flatten
|
||||
from fbt.util import GLOB_FILE_EXCLUSION
|
||||
|
||||
|
||||
def GlobRecursive(env, pattern, node=".", exclude=None):
|
||||
def GlobRecursive(env, pattern, node=".", exclude=[]):
|
||||
exclude = list(set(Flatten(exclude) + GLOB_FILE_EXCLUSION))
|
||||
# print(f"Starting glob for {pattern} from {node} (exclude: {exclude})")
|
||||
results = []
|
||||
if isinstance(node, str):
|
||||
node = env.Dir(node)
|
||||
@@ -13,7 +17,7 @@ def GlobRecursive(env, pattern, node=".", exclude=None):
|
||||
source=True,
|
||||
exclude=exclude,
|
||||
)
|
||||
# print(f"Glob for {pattern} from {node}: {results}")
|
||||
# print(f"Glob result for {pattern} from {node}: {results}")
|
||||
return results
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user