MTI
1
Fails
I'm trying to write a metadata agent that will output errors to a text file.
This is what I have come up with:
<br />
f = open('~/Desktop/error.txt', 'a')<br />
f.write("Error text")<br />
f.close()
It fails, however, with a Console message that goes something like "global name "open" is not defined" (in agentkit.py).
Any help is appreciated :)
TGhey may have disabled it. In the xbmcnfo importer,
nfoText = Core.storage.load(nfoFile)
is used to open a file for read in.
MTI
5
Thanks, Harley - I’ll try your suggestions 
system
Closed
6
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.