mirror of
https://github.com/erkin/ponysay.git
synced 2025-03-21 03:07:11 +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
|
The user's home directory
|
||||||
'''
|
'''
|
||||||
|
@ -2464,9 +2468,5 @@ Whether at least one unrecognised option was used
|
||||||
unrecognised = not opts.parse()
|
unrecognised = not opts.parse()
|
||||||
|
|
||||||
|
|
||||||
|
## Start
|
||||||
'''
|
|
||||||
Start the program from ponysay.__init__ if this is the executed file
|
|
||||||
'''
|
|
||||||
if __name__ == '__main__':
|
|
||||||
Ponysay(opts)
|
Ponysay(opts)
|
||||||
|
|
Loading…
Add table
Reference in a new issue