lifelike / hexmapextension

Inkscape extension for creating hex grids suitable for boardgame maps.
129 stars 16 forks source link

Logfile Rewrite Needs Tweak? #41

Closed Jeffw3 closed 1 year ago

Jeffw3 commented 3 years ago

Apologies in advance -- I know little of Python or Github. In trying to debug the latest, I noticed that the Log file write method was changed to the pattern: Open, Write, Close, which I'm guessing was done to prevent an error message about exiting with an open Log file with the old code? Unfortunately, it's opened with a "w" attribute, which effectively leaves a one-line file on exit. Locally, I mimicked the earlier write() code, and then closed the log at the end of effect(). I've no idea if it's proper Python, but it did get rid of the error, and the logs are complete.