How to ensure file has been written to disk before reading it
How to ensure file has been written to disk before reading it Question: I want to read a plan.txt file generated by the fast-downward planner, to do so I’m using subprocess as follows: import subprocess search_options = "lama-first" ## Call Planner cmd = [ "python3", self.planner_path, "–alias", search_options, "–plan-file", self.plan_path, self.domain_path, self.problem_path, ] ## Read …