mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-26 06:07:59 +01:00
m
This commit is contained in:
parent
1ea6043b1d
commit
2e4e6474a5
1 changed files with 3 additions and 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())
|
||||
|
|
Loading…
Reference in a new issue