Skip to content

Commit

Permalink
fix jar path
Browse files Browse the repository at this point in the history
  • Loading branch information
muddymudskipper committed Jul 8, 2024
1 parent 9e377aa commit 8b7f4e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmem_plugin_reason/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
from cmem_plugin_base.dataintegration.types import BoolParameterType, IntParameterType
from defusedxml import minidom

from . import __path__

REASONERS = OrderedDict(
{
"elk": "ELK",
Expand Down Expand Up @@ -216,7 +218,7 @@ def get_provenance(plugin: WorkflowPlugin, context: ExecutionContext) -> dict |

def robot(cmd: str, max_ram_percentage: int) -> CompletedProcess:
"""Run robot.jar"""
jar = Path("cmem_plugin_reason") / "bin" / "robot.jar"
jar = Path(__path__[0]) / "bin" / "robot.jar"
cmd = f"java -XX:MaxRAMPercentage={max_ram_percentage} -jar {jar} " + cmd
return run(shlex.split(cmd), check=False, capture_output=True) # noqa: S603

Expand Down

0 comments on commit 8b7f4e6

Please sign in to comment.