support pipes and sockets as ponyfiles and balloon files

This commit is contained in:
Mattias Andrée 2012-08-22 01:59:06 +02:00
parent 22d7318624
commit beeed62f49

View file

@ -175,7 +175,7 @@ class Ponysay():
if not names == None:
for name in names:
if os.path.isfile(name):
if os.path.exists(name):
ponies[name] = name
if names == None:
@ -455,7 +455,7 @@ class Ponysay():
balloons[balloon] = balloondir + balloonfile
for name in names:
if os.path.isfile(name):
if os.path.exists(name):
balloons[name] = name
if names == None: