Pcbnew, script, python: creating a text file

I try to create a position file with some corection for a PnP machine.
In the process I need to create a .txt file, but when I create it I got a:

Traceback (most recent call last):
File “”, line 1, in
IOError: [Errno 13] Permission denied: ‘Pnp.txt’
Any idea?

Finally I run as administrator Kicad and it works.

Don’t run KiCad as administrator. In fact, never run any program that doesn’t need elevated privileges as administrator for security reasons.

When you create a file without specifying full path it will be created in the current working directory of the program. KiCad sets working directory as the location of the project you have opened.

Either specify full path to a location that is writeable without admin privileges or move your project to such location.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.