jetperch / pyjoulescope_ui

Joulescope graphical user interface
https://www.joulescope.com
Apache License 2.0
85 stars 26 forks source link

USB Inrush test fails to run if path has spaces #278

Closed mliberty1 closed 1 week ago

mliberty1 commented 3 months ago

Joulescope model

JS220

UI version

1.1.10

What OS are you seeing the problem on?

Windows 11, Windows 10

What happened?

When the data path has spaces, the USBET invocation fails. USBET displays an popup dialog with the error "Unrecognized test:".

What was expected?

The USBET tool should work with spaces.

How to reproduce?

Edit the joulescope_ui_config.json file "common/settings", "paths", "data", "value" to be a directory with spaces. Try running the USB Inrush analysis from the Waveform widget.

Extra information

The problem is how USBET handles command-line arguments. It expects spaces in a file to separate the argument into multiple arguments. When we invoke from python, we always pass a single argument with spaces. USBET cannot handle this.