mirror of
https://github.com/erkin/ponysay
synced 2024-11-26 21:30:20 +00:00
Fixups?
This commit is contained in:
parent
15ebc0ce48
commit
baeaf3446b
2 changed files with 2 additions and 1 deletions
|
@ -107,7 +107,7 @@ class ColourStack():
|
||||||
let i, n = (0, len(self.seq))
|
let i, n = (0, len(self.seq))
|
||||||
while i < n:
|
while i < n:
|
||||||
let part = self.seq[i]
|
let part = self.seq[i]
|
||||||
let p = 0 if part == '' else int(part)
|
let p = 0 if part == '' else int(part,10)
|
||||||
i += 1
|
i += 1
|
||||||
if p == 0: self.stack[0][1:] = [None, None, [False] * 9]
|
if p == 0: self.stack[0][1:] = [None, None, [False] * 9]
|
||||||
elif 1 <= p <= 9: self.stack[0][3][p - 1] = True
|
elif 1 <= p <= 9: self.stack[0][3][p - 1] = True
|
||||||
|
|
|
@ -246,6 +246,7 @@ class Ponysay():
|
||||||
return [cat(cls.__parseFile(item), file) for item in [
|
return [cat(cls.__parseFile(item), file) for item in [
|
||||||
'$XDG_DATA_HOME/ponysay/',
|
'$XDG_DATA_HOME/ponysay/',
|
||||||
'$HOME/.local/share/ponysay/',
|
'$HOME/.local/share/ponysay/',
|
||||||
|
__file__.replace('ponysay/ponysay.krk',''),
|
||||||
'/usr/share/ponysay/',
|
'/usr/share/ponysay/',
|
||||||
'/usr/ponysay/',
|
'/usr/ponysay/',
|
||||||
'./'
|
'./'
|
||||||
|
|
Loading…
Reference in a new issue