Skip to content

scyjava.config.add_option() not sufficient to set keyword arguments for jpype.startJVM #79

Description

@tlambert03

I found myself in a scenario where I'd like to use scyjava.start_jvm(), but need the ability to use some of the keyword-only arguments to jpype.startJVM, like convertStrings

internally, scyjava starts it like this:

def start_jvm(options=None) -> None:
    ...
    # initialize JPype JVM
    _logger.debug("Starting JVM")
    if options is None:
        options = scyjava.config.get_options()
    jpype.startJVM(*options, interrupt=True)

which (i think?) only lets you set jvmargs, but leaves no way to set keyword arguments for jpype.startJVM:

def startJVM(
    *jvmargs: str,
    jvmpath: typing.Optional[_PathOrStr] = None,
    classpath: typing.Union[typing.Sequence[_PathOrStr],
                            _PathOrStr, None] = None,
    ignoreUnrecognized: bool = False,
    convertStrings: bool = False,
    interrupt: bool = not interactive(),
) -> None:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions