mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-26 06:07:59 +01:00
support pipes and sockets as ponyfiles and balloon files
This commit is contained in:
parent
22d7318624
commit
beeed62f49
1 changed files with 2 additions and 2 deletions
4
ponysay
4
ponysay
|
@ -175,7 +175,7 @@ class Ponysay():
|
||||||
|
|
||||||
if not names == None:
|
if not names == None:
|
||||||
for name in names:
|
for name in names:
|
||||||
if os.path.isfile(name):
|
if os.path.exists(name):
|
||||||
ponies[name] = name
|
ponies[name] = name
|
||||||
|
|
||||||
if names == None:
|
if names == None:
|
||||||
|
@ -455,7 +455,7 @@ class Ponysay():
|
||||||
balloons[balloon] = balloondir + balloonfile
|
balloons[balloon] = balloondir + balloonfile
|
||||||
|
|
||||||
for name in names:
|
for name in names:
|
||||||
if os.path.isfile(name):
|
if os.path.exists(name):
|
||||||
balloons[name] = name
|
balloons[name] = name
|
||||||
|
|
||||||
if names == None:
|
if names == None:
|
||||||
|
|
Loading…
Reference in a new issue