FileNotFoundError: [Errno 2] No such file or directory - Blender Python API
I think based on the Error that open is trying to load the file from the Blender project as a directory, but the project is a file and doesn't have this subdirectory &quot;Text&quot;. You could probably fix this by using an absolute path and store the &quot;sim_log.txt&quot; in the same directory of the blender project. To get the absolute path you could use os.path.join(os.path.dirname(bpy.data.filepath), &quot;sim_log.txt&quot;)