aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-08-22 01:59:06 +0200
committerMattias Andrée <maandree@operamail.com>2012-08-22 01:59:06 +0200
commitbeeed62f49f98fc2b29b8f057fd3499a22cad22b (patch)
tree9b7644462d8ada8f9cb44e99c0c078713be71938
parent22d7318624f834254ecdb0c6bdf9536dee3cae37 (diff)
downloadponysay-beeed62f49f98fc2b29b8f057fd3499a22cad22b.tar.gz
ponysay-beeed62f49f98fc2b29b8f057fd3499a22cad22b.tar.bz2
ponysay-beeed62f49f98fc2b29b8f057fd3499a22cad22b.zip
support pipes and sockets as ponyfiles and balloon files
-rwxr-xr-xponysay4
1 files changed, 2 insertions, 2 deletions
diff --git a/ponysay b/ponysay
index 6086352..50e19b2 100755
--- a/ponysay
+++ b/ponysay
@@ -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: