fix path (still doesn't seem to work)

This commit is contained in:
Eric House 2019-06-23 11:29:29 -07:00
parent b3e197dd59
commit 84b121ee4c

View file

@ -38,7 +38,7 @@ def load_strings(lang=''):
wd = os.path.dirname(sys.argv[0]) wd = os.path.dirname(sys.argv[0])
values = 'values' values = 'values'
if not '' == lang: values += '-' + lang if not '' == lang: values += '-' + lang
path = wd + '/../XWords4/res/' + values + '/strings.xml' path = wd + '/../app/src/main/res/' + values + '/strings.xml'
file = open( path, 'r') file = open( path, 'r')
for match in pat.finditer( file.read() ): for match in pat.finditer( file.read() ):
index = len(nodes) index = len(nodes)