diff --git a/ponysay/colourstack.krk b/ponysay/colourstack.krk index 50527ef2..76cd09be 100644 --- a/ponysay/colourstack.krk +++ b/ponysay/colourstack.krk @@ -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 diff --git a/ponysay/ponysay.krk b/ponysay/ponysay.krk index fea43e36..464b622b 100755 --- a/ponysay/ponysay.krk +++ b/ponysay/ponysay.krk @@ -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/', './'