Do not modify sys.path when using calibre-debug to run files in the calibre source code, since calibre always uses absolute imports anyway