aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-08-18 17:14:00 +0200
committerMattias Andrée <maandree@operamail.com>2012-08-18 17:14:00 +0200
commit2e4e6474a5aa679a59521373b95b0742671b84f1 (patch)
treeaefe7a50a8542c2e205def988e72d2235948b8a2
parent1ea6043b1dccdbeb313f925352df8e4317656893 (diff)
downloadponysay-2e4e6474a5aa679a59521373b95b0742671b84f1.tar.gz
ponysay-2e4e6474a5aa679a59521373b95b0742671b84f1.tar.bz2
ponysay-2e4e6474a5aa679a59521373b95b0742671b84f1.zip
m
-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())