diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-08-18 17:09:52 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-08-18 17:09:52 +0200 |
commit | 1ea6043b1dccdbeb313f925352df8e4317656893 (patch) | |
tree | dad99df8f7a4cc12b3fdfbc5058f7b8bf7dc53e7 | |
parent | e27f83da41ed960a14a80bab666373c02e763739 (diff) | |
download | ponysay-1ea6043b1dccdbeb313f925352df8e4317656893.tar.gz ponysay-1ea6043b1dccdbeb313f925352df8e4317656893.tar.bz2 ponysay-1ea6043b1dccdbeb313f925352df8e4317656893.zip |
whops
-rwxr-xr-x | ponysay.py | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -28,6 +28,12 @@ INSTALLDIR = '/usr' ''' +The user's home directory +''' +HOME = os.environ['HOME'] + + +''' The directories where pony files are stored, ttyponies/ are used if the terminal is Linux VT (also known as TTY) ''' ponydirs = [] @@ -65,7 +71,13 @@ parser.add_argument('message', nargs = '?', help = 'message to ponysay') args = parser.parse_args() +''' +This is the mane class of ponysay +''' class ponysay(): + ''' + Starts the part of the program the arguments indicate + ''' def __init__(self, args): if args.list: self.list() elif args.linklist: self.linklist() @@ -80,7 +92,7 @@ class ponysay(): def __getponypath(self, names = None): ponies = {} - if names != None: + if not names == None: for name in names: if os.path.isfile(name): return name |