07-05-2021, 07:46 PM
[ofnuts here]
OK, got hold of a Windows system. I do get an error:
OK, got hold of a Windows system. I do get an error:
Code:
➤> import os.path
➤> fname=os.path.join(gimp.directory,'testfile.dat')
➤> print fname
C:/Users/XXXX/NiñoDéjàVu/GIMP/2.10/testfile.dat
➤> with open(fname,'w') as dat:
... dat.write('Test successful')
...
Traceback (most recent call last):
File "<input>", line 1, in <module>
IOError: [Errno 2] No such file or directory: 'C:/Users/XXXX/Ni\xc3\xb1oD\xc3\xa9j\xc3\xa0Vu/GIMP/2.10/testfile.dat'
➤>