derp, new kms works

This commit is contained in:
Mattias Andrée 2012-08-20 13:27:41 +02:00
parent 6dc8d1d8a2
commit a0d64e1a45

View file

@ -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)