new.py icon indicating copy to clipboard operation
new.py copied to clipboard

Use write_text method from Path and platform check

Open kbaikov opened this issue 4 years ago • 0 comments

Print to a file does not close the resource correctly and i get the warning. So since you already use Path, the write_text method is better. Also chmod is not available on windows so check for platform is added.

kbaikov avatar Sep 13 '20 07:09 kbaikov