From dce166bbe1f7f3d0d71eae7a850c6350f959317d Mon Sep 17 00:00:00 2001 From: Yann Richet <148054082+richetyann@users.noreply.github.com> Date: Tue, 31 Oct 2023 15:54:42 +0100 Subject: [PATCH] fix file:// cplugin path --- Funz/install.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Funz/install.py b/Funz/install.py index 979a3cc..ff7bcc1 100644 --- a/Funz/install.py +++ b/Funz/install.py @@ -140,7 +140,7 @@ def setupModel(model, edit_script=False): node.attrib['command'] = script cplugin = os.path.join(FUNZ_HOME,"plugins","calc",model+".cplugin.jar") if os.path.isfile(cplugin): - node.attrib['cplugin'] = "file:/"+cplugin + node.attrib['cplugin'] = "file://"+cplugin list(calculator_xml.getroot())[i] = node break # Add this CODE if not yet found @@ -151,7 +151,7 @@ def setupModel(model, edit_script=False): command=script) cplugin = os.path.join(FUNZ_HOME,"plugins","calc",model+".cplugin.jar") if os.path.isfile(cplugin): - node.attrib['cplugin'] = "file:/"+cplugin + node.attrib['cplugin'] = "file://"+cplugin list(calculator_xml.getroot()).append(node) with open(os.path.join(FUNZ_HOME,"calculator.xml"), "wb") as f: