kopia lustrzana https://github.com/Aircoookie/WLED
load_usermods: Also search for mod_v2
rodzic
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}"
|
||||||
|
|
Ładowanie…
Reference in New Issue