Siril freezes when a pysiril app.Execute load image is executed

Siril version: 1.3.6 (commit siril@7b52f77b and later)

Note: please report against latest git master branch or latest stable version

Operating System: Windows10

Package: pysiril

Description of the bug

When triing to open an image via "app.Execute(f"load result")" via pysiril, the pysiril script hangs.
I've tested several commit-versions. Up from commit siril@7b52f77b the load command does not work any longer.
With earlier commit it works without any problem.

Commit State
siril@f047dc76 working
siril@764e7aca working
siril@dbad08e2 working
siril@835e680f working
siril@b15d5701 working
siril@504220e8 working
siril@923a0dfb working
siril@4bf84cf8 working
siril@5bc68d7b working
siril@7b52f77b frozen
siril@466218f6 frozen
siril@45915c22 frozen

Reproduction

Reproduction steps:

from pysiril.siril import Siril

app = Siril(SIRILEXE)
app.Open()
app.Execute(f"set32bits")
app.Execute(f"cd {WORKINGDIR}")
app.Execute(f"load result")

Expected result:

	>>> app.Execute(f"load result")
	> load result
	: log: Running command: load
	: log: Reading FITS: file result.fit, 3 layer(s), 676x549 pixels, 32 bits
	> [status: success]
	True
	>>>

Actual result:

	>>> app.Execute(f"load result")
	> load result
	: log: Running command: load
	: log: Python module is up-to-date

And than it is frozen.

Additional information

The "load result" in the gui is working, just via pysiril it is not working.

Edited by Bjoernr