From 2e4e6474a5aa679a59521373b95b0742671b84f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= Date: Sat, 18 Aug 2012 17:14:00 +0200 Subject: [PATCH] m --- ponysay.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ponysay.py b/ponysay.py index e1a47a54..ffb2b0be 100755 --- a/ponysay.py +++ b/ponysay.py @@ -99,7 +99,9 @@ class ponysay(): for ponydir in ponydirs: 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: names = list(ponies.keys())