aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xponysay.py5
1 files changed, 4 insertions, 1 deletions
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 + '\'')