aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-08-20 13:27:41 +0200
committerMattias Andrée <maandree@operamail.com>2012-08-20 13:27:41 +0200
commita0d64e1a45508f6dca01d72b337138eb6e3cc695 (patch)
treec605082d3ef0ff3bb3032f2e5efffb8d33168293
parent6dc8d1d8a28e368b0a289a3d3de1765466def37d (diff)
downloadponysay-a0d64e1a45508f6dca01d72b337138eb6e3cc695.tar.gz
ponysay-a0d64e1a45508f6dca01d72b337138eb6e3cc695.tar.bz2
ponysay-a0d64e1a45508f6dca01d72b337138eb6e3cc695.zip
derp, new kms works
-rwxr-xr-xponysay3
1 files changed, 2 insertions, 1 deletions
diff --git a/ponysay b/ponysay
index 9578ddc..a20f93a 100755
--- a/ponysay
+++ b/ponysay
@@ -326,7 +326,8 @@ class Ponysay():
Popen(pngcmd, stdout=os.fdopen(pngpipe[1], 'w'), shell=True).wait()
pony = '/proc/' + str(os.getpid()) + '/fd/' + str(pngpipe[0])
- cmd = [cowsay, '-f', self.__kms(pony)]
+ pony = self.__kms(pony)
+ cmd = [cowsay, '-f', pony]
if args.opts['-W'] is not None:
cmd += ['-W', args.opts['-W'][0]]
cmd.append(msg)