Using DecoratedGraph.export_plot fails on windows. This is due to the method first creating a temporary file, writing contents to it and then calling dot with the filename as input while still holding the file handle. Windows doesn't allow another process to to open the file while we still have the handle, but we also can't simply drop it before calling dot, because that would remove it.
Using
DecoratedGraph.export_plot
fails on windows. This is due to the method first creating a temporary file, writing contents to it and then callingdot
with the filename as input while still holding the file handle. Windows doesn't allow another process to to open the file while we still have the handle, but we also can't simply drop it before callingdot
, because that would remove it.