From d870bf7a6544d6175b69585a3cae74bfc40dae04 Mon Sep 17 00:00:00 2001 From: Elis Axelsson Date: Sat, 18 Aug 2012 17:22:22 +0200 Subject: Support for ponythink --- ponysay.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ponysay.py') diff --git a/ponysay.py b/ponysay.py index ffb2b0b..3e6ccd1 100755 --- a/ponysay.py +++ b/ponysay.py @@ -297,7 +297,10 @@ class ponysay(): pony = self.__getponypath(args.pony) - os.system('cowsay -f ' + pony + ' \'' + msg + '\'') + if "think" in __file__: cmd = 'cowthink' + else: cmd = 'cowsay' + + os.system(cmd + ' -f ' + pony + ' \'' + msg + '\'') -- cgit