Linux fix

This commit is contained in:
Twentysix 2016-02-08 00:28:37 +01:00
parent 00d098d6ee
commit 85c9446f28

1
red.py
View File

@ -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