ReplicateLayout icon indicating copy to clipboard operation
ReplicateLayout copied to clipboard

Test if file is read-only

Open Drinausaur opened this issue 3 years ago • 1 comments

If we try to use the plugin on a read-only file ( like the KiCad demo files ), we get a python error. I think it would be nicer to test if it opens properly for writing, and if not, display a user-friendly message instead of the python trace

image

Drinausaur avatar Feb 06 '22 15:02 Drinausaur

I'll be a bit more specific. The issue is that you've opened a project in a read-only folder. And as the plugin places the .log file there, this causes the issue. I'll get on it

MitjaNemec avatar Feb 08 '22 19:02 MitjaNemec