Skip to content

Starting python in command line fails if there is additional eclipse argument #179

@lfasani

Description

@lfasani

Steps to reproduce

  • Starts capellac.exe --launcher.ini capella.ini -nosplash -consolelog -application org.polarsys.capella.core.commandline.core -appid org.eclipse.python4capella.commandline -data .\workspace workspace:/Python4Capella/sample_scripts/List_logical_components_in_console.py
    -> OK It works
  • In capella.ini add -eclipse.keyring <any path> and restart the same command line
    -> KO I get the message Can't find script engine for: -appid

Analysis

The issue comes from the fact that Python4CapellaCommandLine get the script path in hard-code way. It gets the third argument instead of being smarter.
final String scriptPath = ((String[]) argObject)[2];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions