How to get full file path to rendered image?
There's a utility function:


  frame_path()
  RenderSettings.frame_path(frame=1)
  Return the absolute path to the filename to be written for a given frame


scene = bpy.context.scene
path = scene.render.frame_path(scene.frame_current)