2008-10-02, 05:19
I used to use this script quite often, but it doesn't work for me anymore. I am using the build from sept 19, 2008 and have uninstalled it and reinstalled it via XBMCScripts several times. I am getting this error:
File "Q:\scripts\G4tv.com xbmcCAST\default.py", line 36, in ?
LOG_FILE = open(LOG_FILE_NAME, 'w')
IOError: [Errno 2] No such file or directory: 'Q:\\scripts\\G4tv.com xbmcCAS\\G4Log.txt'
I realized that it was looking for a directory that wasn't there. I opened up the default.py in PSPad (really any text editor should work) and saw this:
ROOT_DIR = os.getcwd()[:-1]+'\\'
Then I remembered reading the ABC TV Script thread from a short while back and applied bonuswavepilot's method of changing that line to:
ROOT_DIR = os.getcwd()+'\\'
which has fixed the script for me. I don't know how many scripts have this same problem, but it's worth checking if a script suddenly stops working with the newer builds. Hopefully this helps someone else experiencing the same problem.
File "Q:\scripts\G4tv.com xbmcCAST\default.py", line 36, in ?
LOG_FILE = open(LOG_FILE_NAME, 'w')
IOError: [Errno 2] No such file or directory: 'Q:\\scripts\\G4tv.com xbmcCAS\\G4Log.txt'
I realized that it was looking for a directory that wasn't there. I opened up the default.py in PSPad (really any text editor should work) and saw this:
ROOT_DIR = os.getcwd()[:-1]+'\\'
Then I remembered reading the ABC TV Script thread from a short while back and applied bonuswavepilot's method of changing that line to:
ROOT_DIR = os.getcwd()+'\\'
which has fixed the script for me. I don't know how many scripts have this same problem, but it's worth checking if a script suddenly stops working with the newer builds. Hopefully this helps someone else experiencing the same problem.