Skip to content

Embedded Displays and Template/Instances handle relative filepaths differently #3803

@TAU-Reinier

Description

@TAU-Reinier

When a main display embeds a sub-display that contains a file widget (picture, symbol, display etc.) the main display constructs the path to that file differently depending on whether the sub-display is an Embedded Display or a Template/Instance.

If Embedded Display, the main display interprets the filepath as relative to the sub-display's directory, which is what I would expect.

If Template/Instance, the main display interprets the filepath as relative to the main display's directory, which has undesirable consequences.

See attached minimal example. embedded-test.zip

This comes up in real life for example if a user wants to instantiate multiple copies of motor/motorApp/op/bob/autoconvert/motorx.bob with Template/Instance. The buttons to for example motorx_setup.bob won't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions