mirror of
https://github.com/wled/WLED.git
synced 2025-04-25 15:27:19 +00:00
load_usermods: Also search for mod_v2
This commit is contained in:
parent
a5b972d87e
commit
51db63dff7
@ -18,6 +18,9 @@ def find_usermod(mod: str):
|
||||
"""
|
||||
# Check name match
|
||||
mp = usermod_dir / mod
|
||||
if mp.exists():
|
||||
return mp
|
||||
mp = usermod_dir / f"{mod}_v2"
|
||||
if mp.exists():
|
||||
return mp
|
||||
mp = usermod_dir / f"usermod_v2_{mod}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user