I know what is happening:

linecache, for some odd reason, is unable to read the settings file, so
it install it to the same folder as the script. When I run it as a
seperare script, however, it works perfectly. What to do, what to do...