mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-08 04:08:56 -05:00
Linux fix
This commit is contained in:
parent
00d098d6ee
commit
85c9446f28
1
red.py
1
red.py
@ -221,6 +221,7 @@ def list_cogs():
|
|||||||
cogs = glob.glob("cogs/*.py")
|
cogs = glob.glob("cogs/*.py")
|
||||||
clean = []
|
clean = []
|
||||||
for c in cogs:
|
for c in cogs:
|
||||||
|
c = c.replace("/", "\\") # Linux fix
|
||||||
clean.append("cogs." + c.split("\\")[1].replace(".py", ""))
|
clean.append("cogs." + c.split("\\")[1].replace(".py", ""))
|
||||||
return clean
|
return clean
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user