aboutsummaryrefslogtreecommitdiff
path: root/ponysay.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-08-18 17:34:23 +0200
committerMattias Andrée <maandree@operamail.com>2012-08-18 17:34:23 +0200
commit4bcf9d72acd13a93e0e2c2b49e839f73d02943f1 (patch)
treeca36ac55fc0c6644883cb2522edc1dde2d4decc2 /ponysay.py
parent9eee469cf62809b99efa94f4ac2ee064d0f546ba (diff)
parentd870bf7a6544d6175b69585a3cae74bfc40dae04 (diff)
downloadponysay-4bcf9d72acd13a93e0e2c2b49e839f73d02943f1.tar.gz
ponysay-4bcf9d72acd13a93e0e2c2b49e839f73d02943f1.tar.bz2
ponysay-4bcf9d72acd13a93e0e2c2b49e839f73d02943f1.zip
Merge branch 'python' of github.com:erkin/ponysay into python
Diffstat (limited to 'ponysay.py')
-rwxr-xr-xponysay.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ponysay.py b/ponysay.py
index 93cee89..a0326d7 100755
--- a/ponysay.py
+++ b/ponysay.py
@@ -304,7 +304,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 + '\'')