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
parent
b991453bcf
commit
7e88ae7e88
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue