command line space in directory convert error

Hi use PySirl to calibrate images and if I have a direcotry with a space I receive an error in the convert command. I see that in the CD command I have to use ’ in order to avoid error, but in the convert in my program doesn’t work

app.Execute("convert light -out='" + process_dir + "' -fitseq")
> convert light -out='D:\NINA\Image\KPS-1 b_2024-04-06\work\R_112s\work' -fitseq
INFO   : status: error convert
: log: Running command: convert
: log: Cannot create output folder: 'D:\NINA\Image\KPS-1

I have Siril 1.2.1 and the last version of PySIrl in WIndows 10 enviroment

I don’t know for pysiril, but in Siril you need to use " when you have spaces in filepath.

You can have a look here: Commands — Siril 1.2.0 documentation

in the CD command:

directories with spaces in the name can be protected using single or double quotes
cd ‘…/OIII 2x2/’

I try both single and double quote (’ and ") without any success :frowning: the CD command works, the convert command not

Because your command is wrong.
The second Tip of the page I gave you says:
image

Great!!! it works :slight_smile: thank you
I missed the hint and read only the one related to the CD command :frowning: