aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElis Axelsson <elis.axelsson@gmail.com>2012-08-18 17:22:22 +0200
committerElis Axelsson <elis.axelsson@gmail.com>2012-08-18 17:22:22 +0200
commitd870bf7a6544d6175b69585a3cae74bfc40dae04 (patch)
tree8ed4996339b9d674bc423db6b22374029cce5b31
parent97329adb572256572650ab0ba063d81ab9bb40e5 (diff)
downloadponysay-d870bf7a6544d6175b69585a3cae74bfc40dae04.tar.gz
ponysay-d870bf7a6544d6175b69585a3cae74bfc40dae04.tar.bz2
ponysay-d870bf7a6544d6175b69585a3cae74bfc40dae04.zip
Support for ponythink
-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 + '\'')