Skip to content

localFileToUrl drops the Windows drive letter, producing broken file URLs #317

@rozyczko

Description

@rozyczko

Source: EasyReflectometryApp/Backends/Py/helpers.py:28-33 — DEEP_ANALYSIS.md §5 item 6

IO.localFileToUrl on Windows does fpath.split(':')[-1] then QUrl.fromLocalFile(...), which strips the drive letter — producing file:///Users/... from C:\Users\.... Any consumer of Summary.fileUrl / plotFileUrl on Windows gets a broken URL.

Contrast with saveBayesianPlot (analysis.py:1324-1328) which handles Windows drive prefixes correctly.

Fix: Pass the full path to QUrl.fromLocalFile without stripping the drive; reuse the correct logic from saveBayesianPlot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions