Skip to content

Commit

Permalink
fix file:// cplugin path
Browse files Browse the repository at this point in the history
  • Loading branch information
richetyann authored Oct 31, 2023
1 parent d80d2ff commit dce166b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Funz/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit dce166b

Please sign in to comment.