1

I hate Python 2.7

This commit is contained in:
Alex Yatskov 2016-08-23 09:23:26 -07:00
parent 5372aa725f
commit 9ae2ccfb5d
3 changed files with 5 additions and 5 deletions

View File

@ -17,6 +17,6 @@
c = {
'appVersion': '0.24b',
'appVersion': '0.25b',
'apiVersion': 1
}

View File

@ -25,6 +25,6 @@ import translate
def initLanguage():
directory = os.path.dirname(__file__)
return translate.Translator(
deinflect.Deinflector(os.path.join(directory, 'deinflect.json')),
dictionary.Dictionary(os.path.join(directory, 'dictionary.db'))
deinflect.Deinflector(os.path.join(directory, u'deinflect.json')),
dictionary.Dictionary(os.path.join(directory, u'dictionary.db'))
)

View File

@ -24,8 +24,8 @@ import os
class Preferences(object):
def __init__(self):
self.filename = os.path.expanduser('~/.yomichan.json')
self.defaults = os.path.join(os.path.dirname(__file__), 'defaults.json')
self.filename = os.path.expanduser(u'~/.yomichan.json')
self.defaults = os.path.join(os.path.dirname(__file__), u'defaults.json')
self.settings = {}