This commit is contained in:
Mattias Andrée 2012-08-18 17:14:00 +02:00
parent 1ea6043b1d
commit 2e4e6474a5

View file

@ -99,7 +99,9 @@ class ponysay():
for ponydir in ponydirs: for ponydir in ponydirs:
for ponyfile in os.listdir(ponydir): for ponyfile in os.listdir(ponydir):
ponies[ponyfile[:-5]] = ponydir + ponyfile pony = ponyfile[:-5]
if pony not in ponies:
ponies[pony] = ponydir + ponyfile
if names == None: if names == None:
names = list(ponies.keys()) names = list(ponies.keys())