mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-26 06:07:59 +01:00
m
This commit is contained in:
parent
5aa773ef93
commit
45c3d2a1aa
1 changed files with 2 additions and 2 deletions
|
@ -2130,8 +2130,8 @@ linuxvt = ('TERM' in os.environ) and (os.environ['TERM'] == 'linux')
|
|||
'''
|
||||
Whether the script is executed as ponythink
|
||||
'''
|
||||
isthink = (len(__file__) >= 5) and (__file__[-5:] == 'think')
|
||||
isthink = ((len(__file__) >= 8) and (__file__[-8:] == 'think.py')) or isthink
|
||||
isthink = (len(__file__) >= len('think')) and (__file__.endswith('think'))
|
||||
isthink = ((len(__file__) >= len('think.py')) and (__file__.endswith('think.py'))) or isthink
|
||||
|
||||
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue