Correct the datdir/res path

Comment says the folder to be checked should be datadir/res, this makes
the code mean the same thing.
pull/2496/head
Åke Forslund 2020-02-10 16:40:40 +01:00
parent b991453bcf
commit 7e88ae7e88
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ def resolve_resource_file(res_name):
return filename
# Next look for /opt/mycroft/res/res_name
data_dir = os.path.expanduser(config['data_dir'])
data_dir = os.path.join(os.path.expanduser(config['data_dir']), 'res')
filename = os.path.expanduser(os.path.join(data_dir, res_name))
if os.path.isfile(filename):
return filename