This commit is contained in:
K. Lange 2022-11-11 12:54:22 +09:00
parent 15ebc0ce48
commit baeaf3446b
2 changed files with 2 additions and 1 deletions

View file

@ -107,7 +107,7 @@ class ColourStack():
let i, n = (0, len(self.seq))
while i < n:
let part = self.seq[i]
let p = 0 if part == '' else int(part)
let p = 0 if part == '' else int(part,10)
i += 1
if p == 0: self.stack[0][1:] = [None, None, [False] * 9]
elif 1 <= p <= 9: self.stack[0][3][p - 1] = True

View file

@ -246,6 +246,7 @@ class Ponysay():
return [cat(cls.__parseFile(item), file) for item in [
'$XDG_DATA_HOME/ponysay/',
'$HOME/.local/share/ponysay/',
__file__.replace('ponysay/ponysay.krk',''),
'/usr/share/ponysay/',
'/usr/ponysay/',
'./'