From 13d25b7a842262acdc57263707e2bf02dc421151 Mon Sep 17 00:00:00 2001 From: "Jovany Leandro G.C bit4bit@riseup.net" Date: Mon, 7 Aug 2023 09:58:06 -0500 Subject: [PATCH] chore: fixes #13 --- .dev/install_module.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.dev/install_module.sh b/.dev/install_module.sh index f21612f..2a33d1f 100644 --- a/.dev/install_module.sh +++ b/.dev/install_module.sh @@ -19,4 +19,9 @@ python3 setup.py develop trytond_modules_path=`pip3 show trytond | grep Location | sed -nr 's/Location: +//gp'`/trytond/modules module_name=`cat "$SRC/setup.py" | fgrep -A 1 [trytond.modules] | sed 1d | cut -d '=' -f 1 | tr -d ' \n'` [ ! -d "$trytond_modules_path" ] && die "fallo al ubicar ruta de modulos de trytond" -ln -sf "$SRC" "$trytond_modules_path/$module_name" + + +# se limpia para evitar enlaces recursivos +module_trytond_path="$trytond_modules_path/$module_name" +rm -f "$module_trytond_path" +ln -sf "$SRC" "$module_trytond_path"