Skip to content

PythonRunnerPr: add if avoiding using a local directory is essential #33

@johann-petrak

Description

@johann-petrak

There was a discussion in issue #18 that also mentioned that in an embedded scenario there may be issues with write access.
The PythonPr currently uses the gatenlp package directly from the JAR, but even if the script is also in the jar, it always gets copied into the working directory before its is run.
This is necessary, because the PR also allows to update the script and for that it must be stored locally.

The way how things are implemented, it would be possible to also run a script directly from the JAR by loading the script as a module.

If this is really required, the best way to support it would be to have another Pr, e.g. PythonRunnerPr which does not allow editing and simply takes the URL of the script to run.
If we do not allow editing in that PR, we can also make the script URL parameter a runtime parameter, so in the gui, we can change the URL of the program to run for an existing PR.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions