aboutsummaryrefslogtreecommitdiff
path: root/ponysay.py
diff options
context:
space:
mode:
Diffstat (limited to 'ponysay.py')
-rwxr-xr-xponysay.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ponysay.py b/ponysay.py
index e1a47a5..ffb2b0b 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())