Oh, I just discovered a serious bug. This file path is not OS independent. We need to use os.path.join (pjoin in the code).