Skip to content

Trailing backslash in dest-dir and error message #557

@fra87

Description

@fra87

Hi

I'm having some problems trying to launch the program from command line. If I write

"C:\Program Files\KiCad\10.0\bin\python.exe" "C:\Users\user\Documents\KiCad\10.0\3rdparty\/plugins/org_openscopeproject_InteractiveHtmlBom/generate_interactive_bom.py" --dest-dir "docs" --no-browser --checkboxes Placed --include-tracks SmartRelay_4CH.kicad_pcb

the command succeeds. If, on the other hand, I write

"C:\Program Files\KiCad\10.0\bin\python.exe" "C:\Users\user\Documents\KiCad\10.0\3rdparty\/plugins/org_openscopeproject_InteractiveHtmlBom/generate_interactive_bom.py" --dest-dir "docs\" --no-browser --checkboxes Placed --include-tracks SmartRelay_4CH.kicad_pcb

(so with a trailing backslash in the --dest-dir parameter) the command fails with the message:

generate_interactive_bom.py: error: the following arguments are required: file

I'd need this since I'm writing a custom jobset (not working due to KiCad 10 issues with paths, so work in progress) and I want to put the file in ${JOBSET_OUTPUT_WORK_PATH}, but this variable has a trailing backslash.

The workaround is to write "${JOBSET_OUTPUT_WORK_PATH}." to remove the trailing backslash, but it would be useful to avoid using hacks

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