Skip to content
Snippets Groups Projects
Commit 32d5ff980874 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:sparkles: if an addon directory contain symbolic links, follow them

parent 8f0f9922f1b8
No related branches found
Tags 15.3.0
No related merge requests found
......@@ -381,6 +381,18 @@
'%s:/mnt/addons/%s' % (
os.path.realpath(os.path.join(project_path, addons_dir)),
addons_dir))
# also check directory for symbolic links
for subdir, dirs, files in os.walk(
os.path.realpath(os.path.join(project_path, addons_dir))
):
for directory in dirs:
if os.path.islink(os.path.join(subdir, directory)):
binds.append(
'%s:/mnt/addons/%s' % (
os.path.realpath(os.path.join(
project_path, addons_dir, directory)),
os.path.join(addons_dir, directory))
)
all_addons_dir = [
'/opt/odoo/sources/odoo/addons',
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment