07-01-2021, 06:32 AM
(07-01-2021, 04:33 AM)EdoNork Wrote: Sorry for the mistake.
Here you have again:
GIMP 2.10.24 Python Console
Python 2.7.18 (default, Apr 20 2020, 16:57:11) [GCC 9.3.0 64 bit (AMD64)]
➤> import os.path
➤> fname=os.path.join(gimp.directory,'testfile.dat')
➤> print fname
C:\Users\Iñigo\AppData\Roaming\GIMP\2.10\testfile.dat
➤> with open(fname,'w') as dat:
... dat.write('Test successful')
...
Nothing is written in the plugins folder..
The result file is not expected in the plug-ins folder but in that folder's parent (C:\Users\Iñigo\AppData\Roaming\GIMP\2.10\)