From 1ea6043b1dccdbeb313f925352df8e4317656893 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 18 Aug 2012 17:09:52 +0200 Subject: whops --- ponysay.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ponysay.py b/ponysay.py index 96acfbe..e1a47a5 100755 --- a/ponysay.py +++ b/ponysay.py @@ -27,6 +27,12 @@ The directory where ponysay is installed, this is modified when building with ma 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) ''' @@ -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 -- cgit