2008-08-24, 23:27
Hi there,
today I downloaded XBMC Linux (Ubuntu) via the "apt-get install xbmc". XBMC installed fine and ran OK. But my scripts didn't. Here is the thing:
I write a custom logfile to my script folder (/home/user/.xbmc/scripts/scriptname/logfile.log) but now the logging fails.
- On every start of the script the current file is renamed: logfile.log -> logfile.old.log.
- Then I call file.open('logfile.log', 'a+') to create a new file and open it for append (could also use 'w+' but that won't work either).
Here is where I get an error in the xbmc.log file: IOError: [Errno 2] No such file or directory: '/home/user/.xbmc/scripts/scriptname/logfile.log'. Eventhough the file.open command should create it.
Is this a bug, or am I missing a Linux related thing?
today I downloaded XBMC Linux (Ubuntu) via the "apt-get install xbmc". XBMC installed fine and ran OK. But my scripts didn't. Here is the thing:
I write a custom logfile to my script folder (/home/user/.xbmc/scripts/scriptname/logfile.log) but now the logging fails.
- On every start of the script the current file is renamed: logfile.log -> logfile.old.log.
- Then I call file.open('logfile.log', 'a+') to create a new file and open it for append (could also use 'w+' but that won't work either).
Here is where I get an error in the xbmc.log file: IOError: [Errno 2] No such file or directory: '/home/user/.xbmc/scripts/scriptname/logfile.log'. Eventhough the file.open command should create it.
Is this a bug, or am I missing a Linux related thing?