IOError: [Errno 2] No such file or directory Python

前端 未结 1 664
被撕碎了的回忆
被撕碎了的回忆 2021-01-23 20:14

I have this piece of code, trying to find *.vm files, and send them to another

module i did, which supposed to read the lines.

this is the main fil

1条回答
  •  隐瞒了意图╮
    2021-01-23 20:43

    os.listdir does not include the path, only the name of the file. You probably want to call Parser with os.path.join(fileName, child) as the argument.

    0 讨论(0)
提交回复
热议问题