diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-08-18 17:14:00 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-08-18 17:14:00 +0200 |
commit | 2e4e6474a5aa679a59521373b95b0742671b84f1 (patch) | |
tree | aefe7a50a8542c2e205def988e72d2235948b8a2 | |
parent | 1ea6043b1dccdbeb313f925352df8e4317656893 (diff) | |
download | ponysay-2e4e6474a5aa679a59521373b95b0742671b84f1.tar.gz ponysay-2e4e6474a5aa679a59521373b95b0742671b84f1.tar.bz2 ponysay-2e4e6474a5aa679a59521373b95b0742671b84f1.zip |
m
-rwxr-xr-x | ponysay.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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()) |