diff options
-rwxr-xr-x | ponysay | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |