mirror of
https://github.com/erkin/ponysay.git
synced 2025-02-07 13:36:43 +01:00
pre-class Ponysay
code is ran inside if __name__ == "__main__"
This commit is contained in:
parent
c1ed662fcc
commit
388a6ed142
1 changed files with 189 additions and 189 deletions
10
ponysay.py
10
ponysay.py
|
@ -2272,6 +2272,10 @@ class SpelloCorrecter(): # Naïvely and quickly proted and adapted from optimise
|
|||
|
||||
|
||||
|
||||
'''
|
||||
Start the program from ponysay.__init__ if this is the executed file
|
||||
'''
|
||||
if __name__ == '__main__':
|
||||
'''
|
||||
The user's home directory
|
||||
'''
|
||||
|
@ -2464,9 +2468,5 @@ Whether at least one unrecognised option was used
|
|||
unrecognised = not opts.parse()
|
||||
|
||||
|
||||
|
||||
'''
|
||||
Start the program from ponysay.__init__ if this is the executed file
|
||||
'''
|
||||
if __name__ == '__main__':
|
||||
## Start
|
||||
Ponysay(opts)
|
||||
|
|
Loading…
Reference in a new issue