diff options
author | Elis Axelsson <elis.axelsson@gmail.com> | 2012-08-18 17:22:22 +0200 |
---|---|---|
committer | Elis Axelsson <elis.axelsson@gmail.com> | 2012-08-18 17:22:22 +0200 |
commit | d870bf7a6544d6175b69585a3cae74bfc40dae04 (patch) | |
tree | 8ed4996339b9d674bc423db6b22374029cce5b31 | |
parent | 97329adb572256572650ab0ba063d81ab9bb40e5 (diff) | |
download | ponysay-d870bf7a6544d6175b69585a3cae74bfc40dae04.tar.gz ponysay-d870bf7a6544d6175b69585a3cae74bfc40dae04.tar.bz2 ponysay-d870bf7a6544d6175b69585a3cae74bfc40dae04.zip |
Support for ponythink
-rwxr-xr-x | ponysay.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 + '\'') |