[FIX] hw_drivers: In IoT adapt path to filename
From the commit 2ab231bd7af609a751ed8168cc094dfeb1012eda We introduce a error in the path to read Linux file In this commit we correct the access to the file which is in the "home" of the raspberry closes odoo/odoo#107779 X-original-commit: e427d0a2147896aa4311488ebc13f45b84cb330c Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
This commit is contained in:
@@ -309,7 +309,7 @@ def odoo_restart(delay):
|
||||
def path_file(filename):
|
||||
platform_os = platform.system()
|
||||
if platform_os == 'Linux':
|
||||
return Path().absolute().parent.joinpath(filename)
|
||||
return Path.home() / filename
|
||||
elif platform_os == 'Windows':
|
||||
return Path().absolute().parent.joinpath('server/' + filename)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user