mirror of
https://github.com/wled/WLED.git
synced 2025-04-26 15:57:18 +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
|
# Check name match
|
||||||
mp = usermod_dir / mod
|
mp = usermod_dir / mod
|
||||||
|
if mp.exists():
|
||||||
|
return mp
|
||||||
|
mp = usermod_dir / f"{mod}_v2"
|
||||||
if mp.exists():
|
if mp.exists():
|
||||||
return mp
|
return mp
|
||||||
mp = usermod_dir / f"usermod_v2_{mod}"
|
mp = usermod_dir / f"usermod_v2_{mod}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user