Skip to content

Conversation

@santacml
Copy link

On Windows, the current "to_picture" function does not work as the temporary file name is not visible to the system. Therefore, calling "dot" on the command line will result in a FileNotFoundError.

The fix changes the function so that on windows/cygwin, the file is not deleted until after the picture is made. Once the picture is made, the file in unlinked.

I think I may have accidentally made one too many commits - my bad, new to github :).

On Windows, the current "to_picture" function does not work as the temporary file name is not visible to the system. Therefore, calling "dot" on the command line will result in a FileNotFoundError.

The fix changes the function so that on windows/cygwin, the file is not deleted until after the picture is made. Once the picture is made, the file in unlinked.
Update Dotexporter.to_picture to work on Windows/Cygwin
@coveralls
Copy link

coveralls commented Mar 20, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 1f70b73 on santacml:master into 60bc1a1 on c0fec0de:master.

@santacml
Copy link
Author

Code for issue #47

@c0fec0de
Copy link
Owner

Thanks for the pull request.
We can simplify your code, by delaying the unlink behind the with-statement.
In fixed it in the main line. Please re-open the ticket if you still see the issue in your enviornment.

@c0fec0de c0fec0de closed this Jun 24, 2018
c0fec0de added a commit that referenced this pull request Jun 24, 2018
c0fec0de added a commit that referenced this pull request Jun 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants