Skip to content

Commit dae6629

Browse files
committed
flush io before calling execute_cmomand_line.
1 parent 8ad91da commit dae6629

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pyplot_module.f90

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,9 @@ subroutine execute(me, pyfile)
652652
!write to the file:
653653
write(iunit, '(A)') me%str
654654

655+
!to ensure that the file is there for the next command line call:
656+
flush(iunit)
657+
655658
!run the file using python:
656659
call execute_command_line(python_exe//' '//file)
657660

0 commit comments

Comments
 (0)